MCPcopy Index your code
hub / github.com/nodejs/node / encodeInto

Method encodeInto

lib/internal/encoding.js:364–370  ·  view source on GitHub ↗
(src, dest)

Source from the content-addressed store, hash-verified

362 }
363
364 encodeInto(src, dest) {
365 validateString(src, 'src');
366 if (!dest || !isUint8Array(dest))
367 throw new ERR_INVALID_ARG_TYPE('dest', 'Uint8Array', dest);
368
369 return this.#encodeInto(src, dest);
370 }
371
372 [inspect](depth, opts) {
373 if (typeof depth === 'number' && depth < 0)

Callers 1

mainFunction · 0.95

Calls 2

#encodeIntoMethod · 0.95
isUint8ArrayFunction · 0.85

Tested by

no test coverage detected