MCPcopy Create free account
hub / github.com/denoland/std / encode

Function encode

msgpack/encode.ts:66–70  ·  view source on GitHub ↗
(object: ValueType)

Source from the content-addressed store, hash-verified

64 * @returns Encoded MessagePack binary data.
65 */
66export function encode(object: ValueType): Uint8Array_ {
67 const byteParts: Uint8Array[] = [];
68 encodeSlice(object, byteParts);
69 return concat(byteParts);
70}
71
72function encodeFloat64(num: number) {
73 const dataView = new DataView(new ArrayBuffer(9));

Callers 2

encode_test.tsFile · 0.90
tar_stream_test.tsFile · 0.50

Calls 2

concatFunction · 0.90
encodeSliceFunction · 0.85

Tested by

no test coverage detected