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

Function encodeArray

cbor/_common_encode.ts:204–212  ·  view source on GitHub ↗
(
  input: CborType[],
  output: Uint8Array,
  offset: number,
)

Source from the content-addressed store, hash-verified

202}
203
204function encodeArray(
205 input: CborType[],
206 output: Uint8Array,
207 offset: number,
208): number {
209 offset = encodeHeader(0b100_00000, input.length, output, offset);
210 for (const value of input) offset = encode(value, output, offset);
211 return offset;
212}
213
214function encodeObject(
215 input: { [k: string]: CborType },

Callers 1

encodeFunction · 0.85

Calls 2

encodeHeaderFunction · 0.85
encodeFunction · 0.70

Tested by

no test coverage detected