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

Method _write

lib/internal/streams/duplexpair.js:38–47  ·  view source on GitHub ↗
(chunk, encoding, callback)

Source from the content-addressed store, hash-verified

36 }
37
38 _write(chunk, encoding, callback) {
39 assert(this.#otherSide !== null);
40 assert(this.#otherSide[kCallback] === null);
41 if (chunk.length === 0) {
42 process.nextTick(callback);
43 } else {
44 this.#otherSide.push(chunk);
45 this.#otherSide[kCallback] = callback;
46 }
47 }
48
49 _final(callback) {
50 this.#otherSide.on('end', callback);

Callers 2

writeOrBufferFunction · 0.45
doWriteFunction · 0.45

Calls 2

assertFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected