This commit is contained in:
dela
2026-02-21 18:27:49 +08:00
parent 0ac4b23f07
commit 5dc86ccfbf
270 changed files with 49508 additions and 4636 deletions

12
node_modules/@msgpack/msgpack/dist.esm/encode.mjs generated vendored Normal file
View File

@@ -0,0 +1,12 @@
import { Encoder } from "./Encoder.mjs";
/**
* It encodes `value` in the MessagePack format and
* returns a byte buffer.
*
* The returned buffer is a slice of a larger `ArrayBuffer`, so you have to use its `#byteOffset` and `#byteLength` in order to convert it to another typed arrays including NodeJS `Buffer`.
*/
export function encode(value, options) {
const encoder = new Encoder(options);
return encoder.encodeSharedRef(value);
}
//# sourceMappingURL=encode.mjs.map