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

Function encodeUint8Array

cbor/_common_encode.ts:180–188  ·  view source on GitHub ↗
(
  input: Uint8Array,
  output: Uint8Array,
  offset: number,
)

Source from the content-addressed store, hash-verified

178}
179
180function encodeUint8Array(
181 input: Uint8Array,
182 output: Uint8Array,
183 offset: number,
184): number {
185 offset = encodeHeader(0b010_00000, input.length, output, offset);
186 output.set(input, offset);
187 return offset + input.length;
188}
189
190function encodeString(
191 input: string,

Callers 1

encodeFunction · 0.85

Calls 2

encodeHeaderFunction · 0.85
setMethod · 0.65

Tested by

no test coverage detected