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

Function bytesSync

lib/internal/streams/iter/consumers.js:229–232  ·  view source on GitHub ↗

* Collect all bytes from a sync source. * @param {Iterable } source * @param {{ limit?: number }} [options] * @returns {Uint8Array}

(source, options = kNullPrototype)

Source from the content-addressed store, hash-verified

227 * @returns {Uint8Array}
228 */
229function bytesSync(source, options = kNullPrototype) {
230 validateSyncConsumerOptions(options);
231 return concatBytes(collectSync(source, options.limit));
232}
233
234/**
235 * Collect and decode text from a sync source.

Calls 3

concatBytesFunction · 0.85
collectSyncFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…