@schema-pack/message-pack 0.0.0-commit.8d5dca5ce6fa2841d57d39bd48f82979461a0a69 → 0.0.0-commit.cdc6b744227cc8ddcb9fc2fea8035c9fffab4fb5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +9 -123
  3. package/dist/{esm/bigInt-BvNVHUwj.d.mts → cjs/bigInt-CrswAzNE.d.cts} +6 -6
  4. package/dist/cjs/bigInt-CrswAzNE.d.cts.map +1 -0
  5. package/dist/cjs/{bufferWithExtensions-BAinwJsn.d.cts → bufferWithExtensions-Bn-W9WIx.d.cts} +2 -2
  6. package/dist/cjs/{bufferWithExtensions-BAinwJsn.d.cts.map → bufferWithExtensions-Bn-W9WIx.d.cts.map} +1 -1
  7. package/dist/cjs/bufferWithExtensions.d.cts +1 -1
  8. package/dist/cjs/decode-BraWmoPw.d.cts +5 -0
  9. package/dist/cjs/decode-BraWmoPw.d.cts.map +1 -0
  10. package/dist/cjs/decoder/decode.cjs +8 -0
  11. package/dist/cjs/decoder/decode.d.cts +2 -0
  12. package/dist/cjs/decoder/decoder.cjs +1 -1
  13. package/dist/cjs/decoder/decoder.d.cts +1 -1
  14. package/dist/cjs/decoder/decoderBuffer.cjs +2 -3
  15. package/dist/cjs/decoder/decoderBuffer.d.cts +1 -1
  16. package/dist/cjs/decoder/index.cjs +6 -0
  17. package/dist/cjs/decoder/index.d.cts +8 -5
  18. package/dist/cjs/decoder/interfaces/index.d.cts +2 -2
  19. package/dist/cjs/decoder/interfaces/messagePackDecoderBuffer.d.cts +1 -1
  20. package/dist/cjs/decoder/interfaces/messagePackTextDecoder.d.cts +1 -1
  21. package/dist/cjs/decoder/textDecoders/defaultTextDecoder.d.cts +1 -1
  22. package/dist/cjs/decoder/textDecoders/index.cjs +5 -0
  23. package/dist/cjs/decoder/textDecoders/index.d.cts +4 -0
  24. package/dist/cjs/decoder/textDecoders/nodeTextDecoder.cjs +8 -0
  25. package/dist/cjs/decoder/textDecoders/nodeTextDecoder.d.cts +2 -0
  26. package/dist/cjs/decoder/types.d.cts +1 -1
  27. package/dist/{esm/decoder-DEzsJjYj.d.mts → cjs/decoder-BElySab6.d.cts} +4 -4
  28. package/dist/cjs/decoder-BElySab6.d.cts.map +1 -0
  29. package/dist/{esm/decoderBuffer-BxJJdy5k.d.mts → cjs/decoderBuffer-BQIG2-IB.d.cts} +5 -5
  30. package/dist/cjs/decoderBuffer-BQIG2-IB.d.cts.map +1 -0
  31. package/dist/{esm/defaultTextDecoder-B6a1HH2u.d.mts → cjs/defaultTextDecoder-DY92jDSO.d.cts} +2 -2
  32. package/dist/cjs/{defaultTextDecoder-Ji2hTZkf.d.cts.map → defaultTextDecoder-DY92jDSO.d.cts.map} +1 -1
  33. package/dist/cjs/encode-4SxHVw0M.d.cts +5 -0
  34. package/dist/cjs/encode-4SxHVw0M.d.cts.map +1 -0
  35. package/dist/cjs/encoder/encode.cjs +8 -0
  36. package/dist/cjs/encoder/encode.d.cts +2 -0
  37. package/dist/cjs/encoder/encoder.cjs +600 -26
  38. package/dist/cjs/encoder/encoder.d.cts +1 -1
  39. package/dist/cjs/encoder/index.cjs +2 -2
  40. package/dist/cjs/encoder/index.d.cts +4 -4
  41. package/dist/cjs/encoder/interfaces/index.d.cts +3 -3
  42. package/dist/cjs/encoder/interfaces/messagePackEncoder.d.cts +2 -0
  43. package/dist/cjs/encoder/textEncoders/index.d.cts +1 -1
  44. package/dist/cjs/encoder/types.d.cts +2 -2
  45. package/dist/cjs/{encoderBuffer-DWGIXXjj.d.cts → encoder-C9JlmRrE.d.cts} +16 -11
  46. package/dist/cjs/encoder-C9JlmRrE.d.cts.map +1 -0
  47. package/dist/cjs/extensions/bigint/bigInt.cjs +5 -5
  48. package/dist/cjs/extensions/bigint/bigInt.d.cts +1 -1
  49. package/dist/cjs/extensions/bigint/index.d.cts +2 -2
  50. package/dist/cjs/extensions/index.d.cts +2 -2
  51. package/dist/cjs/extensions/interfaces/index.d.cts +2 -2
  52. package/dist/cjs/extensions/interfaces/messagePackExtension.d.cts +1 -1
  53. package/dist/cjs/extensions/timestampDate/index.d.cts +2 -2
  54. package/dist/cjs/extensions/timestampDate/timestampDate.cjs +6 -6
  55. package/dist/cjs/extensions/timestampDate/timestampDate.d.cts +1 -1
  56. package/dist/cjs/index-B5vbV8Ak.d.cts +1 -0
  57. package/dist/cjs/index.cjs +11 -7
  58. package/dist/cjs/index.d.cts +14 -12
  59. package/dist/cjs/interfaces/index.d.cts +1 -1
  60. package/dist/cjs/interfaces/messagePackBufferWithExtensions.d.cts +1 -1
  61. package/dist/{esm/messagePackDecoderBuffer-CGyYSweZ.d.mts → cjs/messagePackDecoderBuffer-B2rRVlMX.d.cts} +2 -2
  62. package/dist/cjs/{messagePackDecoderBuffer-CMG0LPbJ.d.cts.map → messagePackDecoderBuffer-B2rRVlMX.d.cts.map} +1 -1
  63. package/dist/cjs/{messagePackExtension-C_TQXlEn.d.cts → messagePackExtension-DS5fpQDE.d.cts} +152 -52
  64. package/dist/cjs/messagePackExtension-DS5fpQDE.d.cts.map +1 -0
  65. package/dist/cjs/messagePackTextDecoder-J3fr-wQn.d.cts +7 -0
  66. package/dist/cjs/messagePackTextDecoder-J3fr-wQn.d.cts.map +1 -0
  67. package/dist/cjs/nodeTextDecoder-DrNFdTVk.d.cts +9 -0
  68. package/dist/cjs/nodeTextDecoder-DrNFdTVk.d.cts.map +1 -0
  69. package/dist/cjs/{timestampDate-BtBd4bAx.d.cts → timestampDate-mzf7iMkQ.d.cts} +4 -4
  70. package/dist/cjs/timestampDate-mzf7iMkQ.d.cts.map +1 -0
  71. package/dist/cjs/types-CC2wkzZa.d.cts +9 -0
  72. package/dist/cjs/types-CC2wkzZa.d.cts.map +1 -0
  73. package/dist/cjs/{types-BJie2edF.d.cts → types-DTcs4Mkd.d.cts} +4 -4
  74. package/dist/cjs/types-DTcs4Mkd.d.cts.map +1 -0
  75. package/dist/cjs/types.d.cts +2 -2
  76. package/dist/{esm/untypedExtension-6bNMj-lY.d.mts → cjs/untypedExtension-3ndklPO7.d.cts} +4 -4
  77. package/dist/cjs/{untypedExtension-WQvArYoO.d.cts.map → untypedExtension-3ndklPO7.d.cts.map} +1 -1
  78. package/dist/cjs/untypedExtension.d.cts +1 -1
  79. package/dist/{cjs/bigInt-CBB8PGpe.d.cts → esm/bigInt-BqY-My-L.d.mts} +6 -6
  80. package/dist/esm/bigInt-BqY-My-L.d.mts.map +1 -0
  81. package/dist/esm/{bufferWithExtensions-Bikyeyt1.d.mts → bufferWithExtensions-Hh8BfPou.d.mts} +2 -2
  82. package/dist/esm/{bufferWithExtensions-Bikyeyt1.d.mts.map → bufferWithExtensions-Hh8BfPou.d.mts.map} +1 -1
  83. package/dist/esm/bufferWithExtensions.d.mts +1 -1
  84. package/dist/esm/decode-BraWmoPw.d.mts +5 -0
  85. package/dist/esm/decode-BraWmoPw.d.mts.map +1 -0
  86. package/dist/esm/decoder/decode.d.mts +2 -0
  87. package/dist/esm/decoder/decode.mjs +11 -0
  88. package/dist/esm/decoder/decode.mjs.map +1 -0
  89. package/dist/esm/decoder/decoder.d.mts +1 -1
  90. package/dist/esm/decoder/decoder.mjs +1 -1
  91. package/dist/esm/decoder/decoder.mjs.map +1 -1
  92. package/dist/esm/decoder/decoderBuffer.d.mts +1 -1
  93. package/dist/esm/decoder/decoderBuffer.mjs +2 -3
  94. package/dist/esm/decoder/decoderBuffer.mjs.map +1 -1
  95. package/dist/esm/decoder/index.d.mts +8 -5
  96. package/dist/esm/decoder/index.mjs +4 -1
  97. package/dist/esm/decoder/interfaces/index.d.mts +2 -2
  98. package/dist/esm/decoder/interfaces/messagePackDecoderBuffer.d.mts +1 -1
  99. package/dist/esm/decoder/interfaces/messagePackTextDecoder.d.mts +1 -1
  100. package/dist/esm/decoder/textDecoders/defaultTextDecoder.d.mts +1 -1
  101. package/dist/esm/decoder/textDecoders/index.d.mts +4 -0
  102. package/dist/esm/decoder/textDecoders/index.mjs +3 -0
  103. package/dist/esm/decoder/textDecoders/nodeTextDecoder.d.mts +2 -0
  104. package/dist/esm/decoder/textDecoders/nodeTextDecoder.mjs +10 -0
  105. package/dist/esm/decoder/textDecoders/nodeTextDecoder.mjs.map +1 -0
  106. package/dist/esm/decoder/types.d.mts +1 -1
  107. package/dist/{cjs/decoder-C1cd4I8S.d.cts → esm/decoder-uP4X234c.d.mts} +4 -4
  108. package/dist/esm/decoder-uP4X234c.d.mts.map +1 -0
  109. package/dist/{cjs/decoderBuffer-C9_0y-3q.d.cts → esm/decoderBuffer-BMkGFQou.d.mts} +5 -5
  110. package/dist/esm/decoderBuffer-BMkGFQou.d.mts.map +1 -0
  111. package/dist/{cjs/defaultTextDecoder-Ji2hTZkf.d.cts → esm/defaultTextDecoder-DztyzoBV.d.mts} +2 -2
  112. package/dist/esm/{defaultTextDecoder-B6a1HH2u.d.mts.map → defaultTextDecoder-DztyzoBV.d.mts.map} +1 -1
  113. package/dist/esm/encode-4SxHVw0M.d.mts +5 -0
  114. package/dist/esm/encode-4SxHVw0M.d.mts.map +1 -0
  115. package/dist/esm/encoder/encode.d.mts +2 -0
  116. package/dist/esm/encoder/encode.mjs +11 -0
  117. package/dist/esm/encoder/encode.mjs.map +1 -0
  118. package/dist/esm/encoder/encoder.d.mts +1 -1
  119. package/dist/esm/encoder/encoder.mjs +600 -26
  120. package/dist/esm/encoder/encoder.mjs.map +1 -1
  121. package/dist/esm/encoder/index.d.mts +4 -4
  122. package/dist/esm/encoder/index.mjs +2 -2
  123. package/dist/esm/encoder/interfaces/index.d.mts +3 -3
  124. package/dist/esm/encoder/interfaces/messagePackEncoder.d.mts +2 -0
  125. package/dist/esm/encoder/textEncoders/index.d.mts +1 -1
  126. package/dist/esm/encoder/types.d.mts +2 -2
  127. package/dist/esm/{encoderBuffer-DEy8CuWQ.d.mts → encoder-Cc1L1Xet.d.mts} +16 -11
  128. package/dist/esm/encoder-Cc1L1Xet.d.mts.map +1 -0
  129. package/dist/esm/extensions/bigint/bigInt.d.mts +1 -1
  130. package/dist/esm/extensions/bigint/bigInt.mjs +5 -5
  131. package/dist/esm/extensions/bigint/bigInt.mjs.map +1 -1
  132. package/dist/esm/extensions/bigint/index.d.mts +2 -2
  133. package/dist/esm/extensions/index.d.mts +2 -2
  134. package/dist/esm/extensions/interfaces/index.d.mts +2 -2
  135. package/dist/esm/extensions/interfaces/messagePackExtension.d.mts +1 -1
  136. package/dist/esm/extensions/timestampDate/index.d.mts +2 -2
  137. package/dist/esm/extensions/timestampDate/timestampDate.d.mts +1 -1
  138. package/dist/esm/extensions/timestampDate/timestampDate.mjs +6 -6
  139. package/dist/esm/extensions/timestampDate/timestampDate.mjs.map +1 -1
  140. package/dist/esm/index-B5vbV8Ak.d.mts +1 -0
  141. package/dist/esm/index.d.mts +14 -12
  142. package/dist/esm/index.mjs +8 -6
  143. package/dist/esm/interfaces/index.d.mts +1 -1
  144. package/dist/esm/interfaces/messagePackBufferWithExtensions.d.mts +1 -1
  145. package/dist/{cjs/messagePackDecoderBuffer-CMG0LPbJ.d.cts → esm/messagePackDecoderBuffer-Cqvg0zW7.d.mts} +2 -2
  146. package/dist/esm/{messagePackDecoderBuffer-CGyYSweZ.d.mts.map → messagePackDecoderBuffer-Cqvg0zW7.d.mts.map} +1 -1
  147. package/dist/esm/{messagePackExtension-5TI02KG6.d.mts → messagePackExtension-BSIrLaDi.d.mts} +152 -52
  148. package/dist/esm/messagePackExtension-BSIrLaDi.d.mts.map +1 -0
  149. package/dist/esm/messagePackTextDecoder-J3fr-wQn.d.mts +7 -0
  150. package/dist/esm/messagePackTextDecoder-J3fr-wQn.d.mts.map +1 -0
  151. package/dist/esm/nodeTextDecoder-Dhre7WkB.d.mts +9 -0
  152. package/dist/esm/nodeTextDecoder-Dhre7WkB.d.mts.map +1 -0
  153. package/dist/esm/{timestampDate-C1UzHhZL.d.mts → timestampDate-CK1MD05_.d.mts} +4 -4
  154. package/dist/esm/timestampDate-CK1MD05_.d.mts.map +1 -0
  155. package/dist/esm/types-CNR_qJsr.d.mts +9 -0
  156. package/dist/esm/types-CNR_qJsr.d.mts.map +1 -0
  157. package/dist/esm/{types-BJie2edF.d.mts → types-DTcs4Mkd.d.mts} +4 -4
  158. package/dist/esm/types-DTcs4Mkd.d.mts.map +1 -0
  159. package/dist/esm/types.d.mts +2 -2
  160. package/dist/{cjs/untypedExtension-WQvArYoO.d.cts → esm/untypedExtension-DU4TuH0s.d.mts} +4 -4
  161. package/dist/esm/{untypedExtension-6bNMj-lY.d.mts.map → untypedExtension-DU4TuH0s.d.mts.map} +1 -1
  162. package/dist/esm/untypedExtension.d.mts +1 -1
  163. package/dist/esm/untypedExtension.mjs.map +1 -1
  164. package/package.json +20 -12
  165. package/dist/cjs/benchmark/decoderDataTypesFactory.cjs +0 -37
  166. package/dist/cjs/benchmark/decoderDataTypesFactory.d.cts +0 -5
  167. package/dist/cjs/benchmark/decoderDataTypesFactory.d.cts.map +0 -1
  168. package/dist/cjs/bigInt-CBB8PGpe.d.cts.map +0 -1
  169. package/dist/cjs/decoder-C1cd4I8S.d.cts.map +0 -1
  170. package/dist/cjs/decoderBuffer-C9_0y-3q.d.cts.map +0 -1
  171. package/dist/cjs/encoder/encoderBuffer.cjs +0 -602
  172. package/dist/cjs/encoder/encoderBuffer.d.cts +0 -2
  173. package/dist/cjs/encoder/interfaces/messagePackEncoderBuffer.d.cts +0 -2
  174. package/dist/cjs/encoder-DXuhGwd7.d.cts +0 -23
  175. package/dist/cjs/encoder-DXuhGwd7.d.cts.map +0 -1
  176. package/dist/cjs/encoderBuffer-DWGIXXjj.d.cts.map +0 -1
  177. package/dist/cjs/messagePackExtension-C_TQXlEn.d.cts.map +0 -1
  178. package/dist/cjs/messagePackTextDecoder-CtyB0N6j.d.cts +0 -7
  179. package/dist/cjs/messagePackTextDecoder-CtyB0N6j.d.cts.map +0 -1
  180. package/dist/cjs/timestampDate-BtBd4bAx.d.cts.map +0 -1
  181. package/dist/cjs/types-BJie2edF.d.cts.map +0 -1
  182. package/dist/cjs/types-DHnp4kMw.d.cts +0 -6
  183. package/dist/cjs/types-DHnp4kMw.d.cts.map +0 -1
  184. package/dist/esm/benchmark/decoderDataTypesFactory.d.mts +0 -6
  185. package/dist/esm/benchmark/decoderDataTypesFactory.d.mts.map +0 -1
  186. package/dist/esm/benchmark/decoderDataTypesFactory.mjs +0 -39
  187. package/dist/esm/benchmark/decoderDataTypesFactory.mjs.map +0 -1
  188. package/dist/esm/bigInt-BvNVHUwj.d.mts.map +0 -1
  189. package/dist/esm/decoder-DEzsJjYj.d.mts.map +0 -1
  190. package/dist/esm/decoderBuffer-BxJJdy5k.d.mts.map +0 -1
  191. package/dist/esm/encoder/encoderBuffer.d.mts +0 -2
  192. package/dist/esm/encoder/encoderBuffer.mjs +0 -604
  193. package/dist/esm/encoder/encoderBuffer.mjs.map +0 -1
  194. package/dist/esm/encoder/interfaces/messagePackEncoderBuffer.d.mts +0 -2
  195. package/dist/esm/encoder-CQfcjnAe.d.mts +0 -23
  196. package/dist/esm/encoder-CQfcjnAe.d.mts.map +0 -1
  197. package/dist/esm/encoderBuffer-DEy8CuWQ.d.mts.map +0 -1
  198. package/dist/esm/messagePackExtension-5TI02KG6.d.mts.map +0 -1
  199. package/dist/esm/messagePackTextDecoder-CtyB0N6j.d.mts +0 -7
  200. package/dist/esm/messagePackTextDecoder-CtyB0N6j.d.mts.map +0 -1
  201. package/dist/esm/timestampDate-C1UzHhZL.d.mts.map +0 -1
  202. package/dist/esm/types-BJie2edF.d.mts.map +0 -1
  203. package/dist/esm/types-DoBZbRkk.d.mts +0 -6
  204. package/dist/esm/types-DoBZbRkk.d.mts.map +0 -1
  205. /package/dist/cjs/encoder/interfaces/{messagePackEncoderBuffer.cjs → messagePackEncoder.cjs} +0 -0
  206. /package/dist/esm/encoder/interfaces/{messagePackEncoderBuffer.mjs → messagePackEncoder.mjs} +0 -0
@@ -1,602 +0,0 @@
1
- const require_bufferWithExtensions = require("../bufferWithExtensions.cjs");
2
- const require_constants = require("../constants.cjs");
3
- const require_defaultNewBufferFn = require("../defaultNewBufferFn.cjs");
4
- const require_symbols = require("../symbols.cjs");
5
- const require_utils_fitIn7Bits = require("../utils/fitIn7Bits.cjs");
6
- const require_utils_fitIn8Bits = require("../utils/fitIn8Bits.cjs");
7
- const require_utils_fitIn16Bits = require("../utils/fitIn16Bits.cjs");
8
- const require_utils_fitIn32Bits = require("../utils/fitIn32Bits.cjs");
9
- const require_encoder_textEncoders_defaultTextEncoder = require("./textEncoders/defaultTextEncoder.cjs");
10
- //#region src/encoder/encoderBuffer.ts
11
- var EncoderBuffer = class EncoderBuffer extends require_bufferWithExtensions {
12
- /** The current offset in the buffer where the next write operation will occur. */
13
- offset;
14
- /**
15
- * Shared buffer is used to encode strings, to avoid allocating a new buffer
16
- * for each string. The shared buffer is resized if the string is larger than
17
- * the current size of the shared buffer. This helps to improve performance by
18
- * reducing memory allocations and garbage collection overhead.
19
- */
20
- sharedBuffer;
21
- /**
22
- * Determines whether the keys of a map should be sorted before encoding.
23
- * Sorting keys can be useful for ensuring consistent serialization of
24
- * objects, which is important for tasks like hashing or comparing serialized
25
- * data.
26
- */
27
- sortKeys;
28
- /**
29
- * If true, forces the encoder to use 32-bit floating point representation for
30
- * numbers, even if they could be represented as 64-bit floats. This can be
31
- * useful for reducing the size of the encoded data when high precision is not
32
- * required. However, it may lead to loss of precision for very large or very
33
- * small numbers.
34
- */
35
- forceFloat32;
36
- /**
37
- * A function that creates a new buffer of the specified size. This function
38
- * is used to allocate new buffers when the current buffer is not large enough
39
- * to accommodate the data being written. The function should return a new
40
- * instance of TBuffer with the specified size.
41
- */
42
- newBufferFn;
43
- textEncoder;
44
- buffer;
45
- view;
46
- /**
47
- * The extension buffer is used to encode extension types. It is a separate
48
- * buffer from the main buffer, and is used to encode the extension data
49
- * before writing it to the main buffer. This allows for efficient encoding of
50
- * extension types, as the extension data can be encoded in a separate buffer
51
- * and then written to the main buffer in a single operation.
52
- *
53
- * The extension buffer must be resized using ensureCapacity before writing to
54
- * it, to ensure that there is enough space for the extension data.
55
- */
56
- #extensionBuffer;
57
- constructor(options) {
58
- super();
59
- this.offset = 0;
60
- this.textEncoder = options?.textEncoder ?? new require_encoder_textEncoders_defaultTextEncoder();
61
- this.newBufferFn = options?.newBufferFn ?? require_defaultNewBufferFn;
62
- this.buffer = this.newBufferFn(options?.initialBufferSize ?? 1024);
63
- this.sharedBuffer = this.newBufferFn(options?.initialSharedBufferSize ?? 1024);
64
- this.view = new DataView(this.buffer.buffer, this.buffer.byteOffset, this.buffer.byteLength);
65
- this.sortKeys = options?.sortKeys ?? false;
66
- this.forceFloat32 = options?.forceFloat32 ?? false;
67
- }
68
- getExtensionBuffer() {
69
- if (!this.#extensionBuffer) this.#extensionBuffer = new EncoderBuffer({
70
- initialBufferSize: this.sharedBuffer.byteLength,
71
- initialSharedBufferSize: 0,
72
- newBufferFn: this.newBufferFn,
73
- sortKeys: this.sortKeys,
74
- textEncoder: this.textEncoder
75
- });
76
- return this.#extensionBuffer;
77
- }
78
- resizeBuffer(newSize) {
79
- const newBuffer = this.newBufferFn(newSize);
80
- newBuffer.set(this.buffer);
81
- this.buffer = newBuffer;
82
- this.view = new DataView(this.buffer.buffer, this.buffer.byteOffset, this.buffer.byteLength);
83
- return this;
84
- }
85
- ensureCapacity(sizeToWrite) {
86
- const required = this.offset + sizeToWrite;
87
- if (this.buffer.byteLength < required) this.resizeBuffer(required * 2);
88
- return this;
89
- }
90
- resetBuffer() {
91
- this.offset = 0;
92
- return this;
93
- }
94
- flush() {
95
- const buffer = this.buffer.subarray(0, this.offset);
96
- this.resetBuffer();
97
- return buffer;
98
- }
99
- writePositiveFixInt(value) {
100
- this.writeUint8(value);
101
- return this;
102
- }
103
- writeNegativeFixInt(value) {
104
- this.buffer[this.offset++] = value + 256;
105
- return this;
106
- }
107
- writeBin(bytes) {
108
- this.buffer.set(bytes, this.offset);
109
- this.offset += bytes.length;
110
- return this;
111
- }
112
- writeFloat32(value) {
113
- this.view.setFloat32(this.offset, value);
114
- this.offset += 4;
115
- return this;
116
- }
117
- writeFloat64(value) {
118
- this.view.setFloat64(this.offset, value);
119
- this.offset += 8;
120
- return this;
121
- }
122
- writeUint8(value) {
123
- this.buffer[this.offset++] = value;
124
- return this;
125
- }
126
- writeUint16(value) {
127
- this.view.setUint16(this.offset, value);
128
- this.offset += 2;
129
- return this;
130
- }
131
- writeUint32(value) {
132
- this.view.setUint32(this.offset, value);
133
- this.offset += 4;
134
- return this;
135
- }
136
- writeUint64(value) {
137
- const high = value / 4294967296;
138
- const low = value;
139
- this.view.setUint32(this.offset, high);
140
- this.offset += 4;
141
- this.view.setUint32(this.offset, low);
142
- this.offset += 4;
143
- return this;
144
- }
145
- writeInt8(value) {
146
- this.view.setInt8(this.offset++, value & 255);
147
- return this;
148
- }
149
- writeInt16(value) {
150
- this.view.setInt16(this.offset, value);
151
- this.offset += 2;
152
- return this;
153
- }
154
- writeInt32(value) {
155
- this.view.setInt32(this.offset, value);
156
- this.offset += 4;
157
- return this;
158
- }
159
- writeInt64(value) {
160
- const high = Math.floor(value / 4294967296);
161
- const low = value;
162
- this.view.setInt32(this.offset, high);
163
- this.offset += 4;
164
- this.view.setInt32(this.offset, low);
165
- this.offset += 4;
166
- return this;
167
- }
168
- writeStr(value) {
169
- this.offset += this.textEncoder.writeBytes(value, this.buffer);
170
- return this;
171
- }
172
- writeNilSymbol() {
173
- this.buffer[this.offset++] = require_symbols.NIL;
174
- return this;
175
- }
176
- writeFalseSymbol() {
177
- this.buffer[this.offset++] = require_symbols.FALSE;
178
- return this;
179
- }
180
- writeTrueSymbol() {
181
- this.buffer[this.offset++] = require_symbols.TRUE;
182
- return this;
183
- }
184
- writeFixMapSymbol(keysSize) {
185
- this.buffer[this.offset++] = require_symbols.FIXMAP_START | keysSize;
186
- return this;
187
- }
188
- writeFixArraySymbol(arraySize) {
189
- this.buffer[this.offset++] = require_symbols.FIXARRAY_START | arraySize;
190
- return this;
191
- }
192
- writeFixStrSymbol(byteLength) {
193
- this.buffer[this.offset++] = require_symbols.FIXSTR_START | byteLength;
194
- return this;
195
- }
196
- writeBin8Symbol(size) {
197
- this.buffer[this.offset++] = require_symbols.BIN8;
198
- this.buffer[this.offset++] = size;
199
- return this;
200
- }
201
- writeBin16Symbol(size) {
202
- this.buffer[this.offset++] = require_symbols.BIN16;
203
- this.view.setUint16(this.offset, size);
204
- this.offset += 2;
205
- return this;
206
- }
207
- writeBin32Symbol(size) {
208
- this.buffer[this.offset++] = require_symbols.BIN32;
209
- this.view.setUint32(this.offset, size);
210
- this.offset += 4;
211
- return this;
212
- }
213
- writeFloat32Symbol() {
214
- this.buffer[this.offset++] = require_symbols.FLOAT32;
215
- return this;
216
- }
217
- writeFloat64Symbol() {
218
- this.buffer[this.offset++] = require_symbols.FLOAT64;
219
- return this;
220
- }
221
- writeUint8Symbol() {
222
- this.buffer[this.offset++] = require_symbols.UINT8;
223
- return this;
224
- }
225
- writeUint16Symbol() {
226
- this.buffer[this.offset++] = require_symbols.UINT16;
227
- return this;
228
- }
229
- writeUint32Symbol() {
230
- this.buffer[this.offset++] = require_symbols.UINT32;
231
- return this;
232
- }
233
- writeUint64Symbol() {
234
- this.buffer[this.offset++] = require_symbols.UINT64;
235
- return this;
236
- }
237
- writeInt8Symbol() {
238
- this.buffer[this.offset++] = require_symbols.INT8;
239
- return this;
240
- }
241
- writeInt16Symbol() {
242
- this.buffer[this.offset++] = require_symbols.INT16;
243
- return this;
244
- }
245
- writeInt32Symbol() {
246
- this.buffer[this.offset++] = require_symbols.INT32;
247
- return this;
248
- }
249
- writeInt64Symbol() {
250
- this.buffer[this.offset++] = require_symbols.INT64;
251
- return this;
252
- }
253
- writeStr8Symbol(size) {
254
- this.buffer[this.offset++] = require_symbols.STR8;
255
- this.buffer[this.offset++] = size;
256
- return this;
257
- }
258
- writeStr16Symbol(size) {
259
- this.buffer[this.offset++] = require_symbols.STR16;
260
- this.view.setUint16(this.offset, size);
261
- this.offset += 2;
262
- return this;
263
- }
264
- writeStr32Symbol(size) {
265
- this.buffer[this.offset++] = require_symbols.STR32;
266
- this.view.setUint32(this.offset, size);
267
- this.offset += 4;
268
- return this;
269
- }
270
- writeArray16Symbol(size) {
271
- this.buffer[this.offset++] = require_symbols.ARRAY16;
272
- this.view.setUint16(this.offset, size);
273
- this.offset += 2;
274
- return this;
275
- }
276
- writeArray32Symbol(size) {
277
- this.buffer[this.offset++] = require_symbols.ARRAY32;
278
- this.view.setUint32(this.offset, size);
279
- this.offset += 4;
280
- return this;
281
- }
282
- writeMap16Symbol(size) {
283
- this.buffer[this.offset++] = require_symbols.MAP16;
284
- this.view.setUint16(this.offset, size);
285
- this.offset += 2;
286
- return this;
287
- }
288
- writeMap32Symbol(size) {
289
- this.buffer[this.offset++] = require_symbols.MAP32;
290
- this.view.setUint32(this.offset, size);
291
- this.offset += 4;
292
- return this;
293
- }
294
- writeFixExt1Symbol(type) {
295
- this.buffer[this.offset++] = require_symbols.FIXEXT1;
296
- this.buffer[this.offset++] = type;
297
- return this;
298
- }
299
- writeFixExt2Symbol(type) {
300
- this.buffer[this.offset++] = require_symbols.FIXEXT2;
301
- this.buffer[this.offset++] = type;
302
- return this;
303
- }
304
- writeFixExt4Symbol(type) {
305
- this.buffer[this.offset++] = require_symbols.FIXEXT4;
306
- this.buffer[this.offset++] = type;
307
- return this;
308
- }
309
- writeFixExt8Symbol(type) {
310
- this.buffer[this.offset++] = require_symbols.FIXEXT8;
311
- this.buffer[this.offset++] = type;
312
- return this;
313
- }
314
- writeFixExt16Symbol(type) {
315
- this.buffer[this.offset++] = require_symbols.FIXEXT16;
316
- this.buffer[this.offset++] = type;
317
- return this;
318
- }
319
- writeExt8Symbol(type, size) {
320
- this.buffer[this.offset++] = require_symbols.EXT8;
321
- this.buffer[this.offset++] = size;
322
- this.buffer[this.offset++] = type;
323
- return this;
324
- }
325
- writeExt16Symbol(type, size) {
326
- this.buffer[this.offset++] = require_symbols.EXT16;
327
- this.view.setUint16(this.offset, size);
328
- this.offset += 2;
329
- this.buffer[this.offset++] = type;
330
- return this;
331
- }
332
- writeExt32Symbol(type, size) {
333
- this.buffer[this.offset++] = require_symbols.EXT32;
334
- this.view.setUint32(this.offset, size);
335
- this.offset += 4;
336
- this.buffer[this.offset++] = type;
337
- return this;
338
- }
339
- writeString(value) {
340
- const valueLength = value.length;
341
- const requiredSize = value.length * 4;
342
- if (valueLength < 51) {
343
- this.ensureCapacity(1 + requiredSize);
344
- const initialoffset = this.offset;
345
- const byteLengthoffset = this.offset++;
346
- let totalBytes = 0;
347
- let fitInFixStr = true;
348
- let fitInStr8 = true;
349
- let { offset } = this;
350
- for (let index = 0; index < valueLength; index++) {
351
- const code = value.charCodeAt(index);
352
- if (code < 128) {
353
- this.buffer[offset++] = code;
354
- totalBytes++;
355
- } else if (code < 2048) {
356
- this.buffer[offset++] = 192 | code >> 6;
357
- this.buffer[offset++] = 128 | code & 63;
358
- totalBytes += 2;
359
- } else if (code < 55296 || code >= 57344) {
360
- this.buffer[offset++] = 224 | code >> 12;
361
- this.buffer[offset++] = 128 | code >> 6 & 63;
362
- this.buffer[offset++] = 128 | code & 63;
363
- totalBytes += 3;
364
- } else {
365
- index++;
366
- const nextCode = value.charCodeAt(index);
367
- const surrogatePair = ((code & 1023) << 10 | nextCode & 1023) + 65536;
368
- this.buffer[offset++] = 240 | surrogatePair >> 18;
369
- this.buffer[offset++] = 128 | surrogatePair >> 12 & 63;
370
- this.buffer[offset++] = 128 | surrogatePair >> 6 & 63;
371
- this.buffer[offset++] = 128 | surrogatePair & 63;
372
- totalBytes += 4;
373
- }
374
- if (totalBytes > 31) fitInFixStr = false;
375
- else if (totalBytes > 255) {
376
- fitInStr8 = false;
377
- break;
378
- }
379
- }
380
- if (fitInFixStr) {
381
- this.buffer[byteLengthoffset] = require_symbols.FIXSTR_START | totalBytes;
382
- this.offset += totalBytes;
383
- return this;
384
- } else if (fitInStr8) {
385
- this.buffer[byteLengthoffset] = require_symbols.STR8;
386
- const totalBytesPosition = byteLengthoffset + 1;
387
- this.buffer.copyWithin(totalBytesPosition + 1, totalBytesPosition, offset);
388
- this.buffer[totalBytesPosition] = totalBytes;
389
- this.offset++;
390
- this.offset += totalBytes;
391
- return this;
392
- }
393
- this.offset = initialoffset;
394
- }
395
- if (this.sharedBuffer.byteLength < requiredSize) this.sharedBuffer = this.newBufferFn(requiredSize);
396
- const { sharedBuffer } = this;
397
- const byteLength = this.textEncoder.writeBytes(value, sharedBuffer);
398
- if (require_utils_fitIn8Bits(byteLength)) {
399
- this.ensureCapacity(2 + byteLength);
400
- this.writeStr8Symbol(byteLength);
401
- } else if (require_utils_fitIn16Bits(byteLength)) {
402
- this.ensureCapacity(3 + byteLength);
403
- this.writeStr16Symbol(byteLength);
404
- } else {
405
- this.ensureCapacity(5 + byteLength);
406
- this.writeStr32Symbol(byteLength);
407
- }
408
- this.writeBin(sharedBuffer.subarray(0, byteLength));
409
- return this;
410
- }
411
- writeNumber(value) {
412
- if (Number.isInteger(value)) {
413
- if (value < 0) {
414
- if (value > -33) {
415
- this.ensureCapacity(1);
416
- return this.writeNegativeFixInt(value);
417
- } else if (value > -129) {
418
- this.ensureCapacity(2);
419
- this.writeInt8Symbol();
420
- return this.writeInt8(value);
421
- } else if (value > -32769) {
422
- this.ensureCapacity(3);
423
- this.writeInt16Symbol();
424
- return this.writeInt16(value);
425
- } else if (value > -2147483649) {
426
- this.ensureCapacity(5);
427
- this.writeInt32Symbol();
428
- return this.writeInt32(value);
429
- } else if (value >= require_constants.INT64_MIN) {
430
- this.ensureCapacity(9);
431
- this.writeInt64Symbol();
432
- return this.writeInt64(value);
433
- }
434
- throw new Error(`Integer too small to encode: ${value}. Consider using BigIntExtension.`);
435
- } else {
436
- if (require_utils_fitIn7Bits(value)) {
437
- this.ensureCapacity(1);
438
- return this.writePositiveFixInt(value);
439
- }
440
- if (require_utils_fitIn8Bits(value)) {
441
- this.ensureCapacity(2);
442
- this.writeUint8Symbol();
443
- return this.writeUint8(value);
444
- }
445
- if (require_utils_fitIn16Bits(value)) {
446
- this.ensureCapacity(3);
447
- this.writeUint16Symbol();
448
- return this.writeUint16(value);
449
- }
450
- if (require_utils_fitIn32Bits(value)) {
451
- this.ensureCapacity(5);
452
- this.writeUint32Symbol();
453
- return this.writeUint32(value);
454
- }
455
- if (value <= require_constants.UINT64_MAX) {
456
- this.ensureCapacity(9);
457
- this.writeUint64Symbol();
458
- return this.writeUint64(value);
459
- }
460
- throw new Error(`Integer too large to encode: ${value}. Consider using BigIntExtension.`);
461
- }
462
- } else if (this.forceFloat32) {
463
- this.ensureCapacity(5);
464
- this.writeFloat32Symbol();
465
- this.writeFloat32(value);
466
- } else {
467
- this.ensureCapacity(9);
468
- this.writeFloat64Symbol();
469
- this.writeFloat64(value);
470
- }
471
- return this;
472
- }
473
- writeMap(value) {
474
- const keys = Object.keys(value);
475
- if (this.sortKeys) keys.sort();
476
- const keysLength = keys.length;
477
- const requiredSize = keysLength * 4;
478
- if (keysLength < 16) {
479
- this.ensureCapacity(requiredSize + 1);
480
- this.writeFixMapSymbol(keysLength);
481
- } else if (require_utils_fitIn16Bits(keysLength)) {
482
- this.ensureCapacity(requiredSize + 3);
483
- this.writeMap16Symbol(keysLength);
484
- } else if (require_utils_fitIn32Bits(keysLength)) {
485
- this.ensureCapacity(requiredSize + 5);
486
- this.writeMap32Symbol(keysLength);
487
- } else throw new Error(`Map too large to encode: ${keysLength} keys`);
488
- for (const key of keys) {
489
- this.write(key);
490
- this.write(value[key]);
491
- }
492
- return this;
493
- }
494
- writeArray(value) {
495
- const length = value.length;
496
- const requiredSize = length * 4;
497
- if (length < 16) {
498
- this.ensureCapacity(requiredSize + 1);
499
- this.writeFixArraySymbol(length);
500
- } else if (require_utils_fitIn16Bits(length)) {
501
- this.ensureCapacity(requiredSize + 3);
502
- this.writeArray16Symbol(length);
503
- } else if (require_utils_fitIn32Bits(length)) {
504
- this.ensureCapacity(requiredSize + 5);
505
- this.writeArray32Symbol(length);
506
- } else throw new Error(`Array too large to encode: ${length}`);
507
- for (let index = 0; index < length; ++index) this.write(value[index]);
508
- return this;
509
- }
510
- writeUint8Array(value) {
511
- if (require_utils_fitIn8Bits(value.length)) {
512
- this.ensureCapacity(2 + value.length);
513
- this.writeBin8Symbol(value.length);
514
- } else if (require_utils_fitIn16Bits(value.length)) {
515
- this.ensureCapacity(3 + value.length);
516
- this.writeBin16Symbol(value.length);
517
- } else if (require_utils_fitIn32Bits(value.length)) {
518
- this.ensureCapacity(5 + value.length);
519
- this.writeBin32Symbol(value.length);
520
- } else throw new Error(`Uint8Array too large to encode: ${value.length}`);
521
- return this.writeBin(value);
522
- }
523
- writeExtension(extension, buffer) {
524
- const writtenBytes = buffer.offset;
525
- if (writtenBytes === 1) {
526
- this.ensureCapacity(3);
527
- this.writeFixExt1Symbol(extension.type);
528
- } else if (writtenBytes === 2) {
529
- this.ensureCapacity(4);
530
- this.writeFixExt2Symbol(extension.type);
531
- } else if (writtenBytes === 4) {
532
- this.ensureCapacity(6);
533
- this.writeFixExt4Symbol(extension.type);
534
- } else if (writtenBytes === 8) {
535
- this.ensureCapacity(10);
536
- this.writeFixExt8Symbol(extension.type);
537
- } else if (writtenBytes === 16) {
538
- this.ensureCapacity(18);
539
- this.writeFixExt16Symbol(extension.type);
540
- } else if (require_utils_fitIn8Bits(writtenBytes)) {
541
- this.ensureCapacity(3 + writtenBytes);
542
- this.writeExt8Symbol(extension.type, writtenBytes);
543
- } else if (require_utils_fitIn16Bits(writtenBytes)) {
544
- this.ensureCapacity(4 + writtenBytes);
545
- this.writeExt16Symbol(extension.type, writtenBytes);
546
- } else if (require_utils_fitIn32Bits(writtenBytes)) {
547
- this.ensureCapacity(6 + writtenBytes);
548
- this.writeExt32Symbol(extension.type, writtenBytes);
549
- } else throw new Error(`Extension data too large to encode: ${writtenBytes} bytes`);
550
- this.buffer.set(buffer.buffer.subarray(0, writtenBytes), this.offset);
551
- this.offset += writtenBytes;
552
- return this;
553
- }
554
- tryToWriteExtensionValue(value) {
555
- if (this.extensions.size > 0) {
556
- const iterator = this.extensions.values();
557
- const extensionBuffer = this.getExtensionBuffer();
558
- for (const extension of iterator) {
559
- extensionBuffer.resetBuffer();
560
- extension.encode(value, extensionBuffer);
561
- if (extensionBuffer.offset > 0) {
562
- this.writeExtension(extension, extensionBuffer);
563
- return extensionBuffer.offset;
564
- }
565
- }
566
- }
567
- return 0;
568
- }
569
- writeBigInt(value) {
570
- if (this.tryToWriteExtensionValue(value) > 0) return this;
571
- throw new TypeError("\"bigint\" encoding is not supported by default. Consider using BigIntExtension");
572
- }
573
- writeObject(value) {
574
- if (Array.isArray(value)) return this.writeArray(value);
575
- if (this.tryToWriteExtensionValue(value) > 0) return this;
576
- if (value instanceof Uint8Array) return this.writeUint8Array(value);
577
- return this.writeMap(value);
578
- }
579
- write(value) {
580
- switch (typeof value) {
581
- case "number": return this.writeNumber(value);
582
- case "string": return this.writeString(value);
583
- case "boolean":
584
- this.ensureCapacity(1);
585
- if (value) return this.writeTrueSymbol();
586
- return this.writeFalseSymbol();
587
- case "undefined":
588
- this.ensureCapacity(1);
589
- return this.writeNilSymbol();
590
- case "bigint": return this.writeBigInt(value);
591
- case "object":
592
- if (value === null) {
593
- this.ensureCapacity(1);
594
- return this.writeNilSymbol();
595
- }
596
- return this.writeObject(value);
597
- default: throw new TypeError(`Unsupported type for encoding: ${typeof value}. Consider using an extension.`);
598
- }
599
- }
600
- };
601
- //#endregion
602
- module.exports = EncoderBuffer;
@@ -1,2 +0,0 @@
1
- import { t as EncoderBuffer } from "../encoderBuffer-DWGIXXjj.cjs";
2
- export = EncoderBuffer;
@@ -1,2 +0,0 @@
1
- import { n as MessagePackEncoderBuffer } from "../../messagePackExtension-C_TQXlEn.cjs";
2
- export = MessagePackEncoderBuffer;
@@ -1,23 +0,0 @@
1
- import { r as EncoderBufferOptions, t as MessagePackExtension } from "./messagePackExtension-C_TQXlEn.cjs";
2
- import { t as EncoderBuffer } from "./encoderBuffer-DWGIXXjj.cjs";
3
- //#region src/encoder/encoder.d.ts
4
- /**
5
- * The `Encoder` class is responsible for encoding JavaScript values into the
6
- * MessagePack format.
7
- *
8
- * This class is just a wrapper around the buffer, which does the actual
9
- * encoding. The buffer is responsible for managing the encoding process and
10
- * handling extensions.
11
- */
12
- declare class Encoder<TBuffer extends Uint8Array = Uint8Array> {
13
- buffer: EncoderBuffer<TBuffer>;
14
- constructor(options?: Partial<EncoderBufferOptions<TBuffer>>);
15
- encode(value: unknown): Uint8Array;
16
- addExtension(extension: MessagePackExtension<unknown, TBuffer>): this;
17
- addInternalExtension(extension: MessagePackExtension<unknown, TBuffer>): this;
18
- addExtensionType(type: number, extension: Omit<MessagePackExtension<unknown, TBuffer>, 'type'>): this;
19
- fetchExtension(type: number): MessagePackExtension<unknown, TBuffer>;
20
- }
21
- //#endregion
22
- export { Encoder as t };
23
- //# sourceMappingURL=encoder-DXuhGwd7.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"encoder-DXuhGwd7.d.cts","names":[],"sources":["../../src/encoder/encoder.ts"],"mappings":";;;;;;;;;;;cAYM,QAAQ,gBAAgB,aAAa;EACzC,QAAQ,cAAc;EAEtB,YAAY,UAAU,QAAQ,qBAAqB;EAInD,OAAO,iBAAiB;EAQxB,aAAa,WAAW,8BAA8B;EAMtD,qBACE,WAAW,8BAA8B;EAO3C,iBACE,cACA,WAAW,KAAK,8BAA8B;EAOhD,eAAe,eAAe,8BAA8B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"encoderBuffer-DWGIXXjj.d.cts","names":[],"sources":["../../src/encoder/encoderBuffer.ts"],"mappings":";;;;;cAsBM,cAAc,gBAAgB,aAAa,oBACvC,qBAAqB,oBAClB,yBAAyB;;;EAGpC;;;;;;;YAQU,cAAc;;;;;;;WAQf;;;;;;;;WASA;;;;;;;YAQC,aAAa,YAAY;WAE1B,aAAa,uBAAuB;EAE7C,QAAQ;EACR,MAAM;EAcN,YAAY,UAAU,QAAQ,qBAAqB;EAwBnD,sBAAsB,cAAc;EAcpC,aAAa;EAeb,eAAe;EAUf;EAMA,SAAS;EAST,oBAAoB;EAMpB,oBAAoB;EAOpB,SAAS,OAAO;EAQhB,aAAa;EAOb,aAAa;EAOb,WAAW;EAMX,YAAY;EAOZ,YAAY;EAOZ,YAAY;EAaZ,UAAU;EAMV,WAAW;EAOX,WAAW;EAOX,WAAW;EA0BX,SAAS;EAMT;EAMA;EAMA;EAMA,kBAAkB;EAMlB,oBAAoB;EAMpB,kBAAkB;EAMlB,gBAAgB;EAOhB,iBAAiB;EAQjB,iBAAiB;EAQjB;EAMA;EAMA;EAMA;EAMA;EAMA;EAMA;EAMA;EAMA;EAMA;EAMA,gBAAgB;EAOhB,iBAAiB;EASjB,iBAAiB;EASjB,mBAAmB;EASnB,mBAAmB;EASnB,iBAAiB;EASjB,iBAAiB;EASjB,mBAAmB;EAOnB,mBAAmB;EAOnB,mBAAmB;EAOnB,mBAAmB;EAOnB,oBAAoB;EAOpB,gBAAgB,cAAc;EAQ9B,iBAAiB,cAAc;EAW/B,iBAAiB,cAAc;EAW/B,YAAY;EAyGZ,YAAY;EA4EZ,SAAS,8BAA8B,QACrC,OAAO,OAAO,MAAM;EAiCtB,WAAW;EAoCX,gBAAgB,OAAO;EAiBvB,eACE,WAAW,sBACX,QAAQ,uBAAuB;EAiDjC,yBAAyB;EAqBzB,YAAY;EAYZ,YAAY;EAkBZ,MAAM"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"messagePackExtension-C_TQXlEn.d.cts","names":[],"sources":["../../src/interfaces/messagePackBufferWithExtensions.ts","../../src/encoder/types.ts","../../src/encoder/interfaces/messagePackEncoderBuffer.ts","../../src/extensions/interfaces/messagePackExtension.ts"],"mappings":";;;;UAEyB,gCACvB,gBAAgB,aAAa;;;;;;;;EAS7B,aAAa,WAAW,8BAA8B;;;;UCRvC,qBACf,gBAAgB,aAAa,oBACrB,cAAc;;;;;;;;;EAStB;;;;;;EAMA,cAAc,uBAAuB;;;;;;;;EAQrC;;;;;;;;;;;;;;EAcA;;KAGU,cAAc,SAAS,6BAChC,cAAc,WAAW,aAAa,kBAAkB,OAAO,QAAQ;KAG9D,uBAAuB,gBAAgB,aAAa,cAC9D,cACE,yBAAyB;;;;;;;;UC1CJ,yBACvB,gBAAgB,aAAa,oBACrB,gCAAgC;;;;;;EAMxC,QAAQ;;;;;;EAOR;;;;;;;EAQA,MAAM;;;;;WAMG,aAAa;;;;;;;;;;;;;;;;EAiBtB,eAAe;;;;;;;;EASf,aAAa;;;;;;EAOb;;;;;;EAOA,SAAS;;;;;;;;;;;;;EAcT,oBAAoB;;;;;;;;;;;;EAapB,oBAAoB;;;;;;;;;;EAWpB,SAAS,OAAO;;;;;;;;;;;;EAahB,aAAa;;;;;;;;;;;;EAab,aAAa;;;;;;;;;;;EAYb,WAAW;;;;;;;;;;;EAYX,YAAY;;;;;;;;;;;EAYZ,YAAY;;;;;;;;;;;EAYZ,YAAY;;;;;;;;;;;EAYZ,UAAU;;;;;;;;;;;EAYV,WAAW;;;;;;;;;;;EAYX,WAAW;;;;;;;;;;;EAYX,WAAW;;;;;;;;;;EAWX,SAAS;;;;;;;;;;;;EAaT;;;;;;;;;;;EAYA;;;;;;;;;;;EAYA;;;;;;;;;;;;EAaA,kBAAkB;;;;;;;;;;;;EAalB,oBAAoB;;;;;;;;;;;;EAapB,kBAAkB;;;;;;;;;;;;EAalB,gBAAgB;;;;;;;;;;;;EAahB,iBAAiB;;;;;;;;;;;;EAajB,iBAAiB;;;;;;;;;;;EAYjB;;;;;;;;;;;EAYA;;;;;;;;;;;EAYA;;;;;;;;;;;EAYA;;;;;;;;;;;EAYA;;;;;;;;;;;EAYA;;;;;;;;;;;EAYA;;;;;;;;;;;EAYA;;;;;;;;;;;EAYA;;;;;;;;;;;EAYA;;;;;;;;;;;;EAaA,gBAAgB;;;;;;;;;;;;EAahB,iBAAiB;;;;;;;;;;;;EAajB,iBAAiB;;;;;;;;;;;;EAajB,mBAAmB;;;;;;;;;;;;EAanB,mBAAmB;;;;;;;;;;;;EAanB,iBAAiB;;;;;;;;;;;;EAajB,iBAAiB;;;;;;;;;;;;EAajB,mBAAmB;;;;;;;;;;;;EAanB,mBAAmB;;;;;;;;;;;;EAanB,mBAAmB;;;;;;;;;;;;EAanB,mBAAmB;;;;;;;;;;;;EAanB,oBAAoB;;;;;;;;;;;;EAapB,gBAAgB,cAAc;;;;;;;;;;;;EAa9B,iBAAiB,cAAc;;;;;;;;;;;;EAa/B,iBAAiB,cAAc;;;;;;EAO/B,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BN,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmEZ,YAAY;;;;;;;;;;;;;;;;;;;;;EAsBZ,SAAS,8BAA8B,QACrC,OAAO,OAAO,MAAM;;;;;;;;;;;;;;;;;;;;;EAuBtB,WAAW;;;;;;;EAQX,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCZ,gBAAgB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2DvB,eACE,WAAW,sBACX,QAAQ,uBAAuB;;;;UCl6BV,qBACvB,kBACA,gBAAgB,aAAa;;;;;;WAOpB;;;;;;;;;EAUT,OACE,wBACA,QAAQ,yBAAyB;;;;;;;;;;;;EAcnC,OAAO,eAAe,0BAA0B,eAAe"}
@@ -1,7 +0,0 @@
1
- //#region src/decoder/interfaces/messagePackTextDecoder.d.ts
2
- interface MessagePackTextDecoder {
3
- decode(buffer: Uint8Array, startOffset: number, endOffset: number): string;
4
- }
5
- //#endregion
6
- export { MessagePackTextDecoder as t };
7
- //# sourceMappingURL=messagePackTextDecoder-CtyB0N6j.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"messagePackTextDecoder-CtyB0N6j.d.cts","names":[],"sources":["../../src/decoder/interfaces/messagePackTextDecoder.ts"],"mappings":";UAAyB;EACvB,OAAO,QAAQ,YAAY,qBAAqB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"timestampDate-BtBd4bAx.d.cts","names":[],"sources":["../../src/extensions/timestampDate/timestampDate.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;cA4BM,uBACJ,gBAAgB,aAAa,uBAClB,qBAAqB,MAAM;WAC7B;EAET,uBAAuB,MAAM,OAAO;EAcpC,OACE,wBACA,QAAQ,yBAAyB;EAuBnC,OAAO,eAAe,yBAAyB,UAAU,eAAe"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types-BJie2edF.d.cts","names":[],"sources":["../../src/types.ts"],"mappings":";KAAY,YAAY,gBAAgB,aAAa,eACnD,yBACG;UAEY,cAAc,gBAAgB,aAAa;;;;;;;EAO1D;;;;;;EAOA,cAAc,YAAY"}
@@ -1,6 +0,0 @@
1
- import { t as BufferOptions } from "./types-BJie2edF.cjs";
2
- //#region src/decoder/types.d.ts
3
- type DecoderBufferOptions<TBuffer extends Uint8Array = Uint8Array> = BufferOptions<TBuffer>;
4
- //#endregion
5
- export { DecoderBufferOptions as t };
6
- //# sourceMappingURL=types-DHnp4kMw.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types-DHnp4kMw.d.cts","names":[],"sources":["../../src/decoder/types.ts"],"mappings":";;KAEY,qBAAqB,gBAAgB,aAAa,cAC5D,cAAc"}
@@ -1,6 +0,0 @@
1
- import { dataTypesFactory } from "@schema-pack/benchmark";
2
- //#region src/benchmark/decoderDataTypesFactory.d.ts
3
- declare const decoderDataTypesFactory: Record<keyof typeof dataTypesFactory, () => Uint8Array>;
4
- //#endregion
5
- export { decoderDataTypesFactory as default };
6
- //# sourceMappingURL=decoderDataTypesFactory.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decoderDataTypesFactory.d.mts","names":[],"sources":["../../../src/benchmark/decoderDataTypesFactory.ts"],"mappings":";;cAMM,yBAAyB,oBAChB,wBACP"}