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

Function write

test/parallel/test-blob.js:295–297  ·  view source on GitHub ↗
(chunk)

Source from the content-addressed store, hash-verified

293 const decoder = new TextDecoder();
294 await stream.pipeTo(new WritableStream({
295 write(chunk) {
296 chunks.push(decoder.decode(chunk, { stream: true }));
297 }
298 }));
299 assert.strictEqual(chunks.join(''), 'ABC');
300})().then(common.mustCall());

Callers 9

runTestsFunction · 0.70
runTestsFunction · 0.70
runTestsFunction · 0.70
runTestsFunction · 0.70

Calls 2

decodeMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…