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

Function write

benchmark/fs/read-stream-throughput.js:60–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 ws.on('drain', write);
59 write();
60 function write() {
61 do {
62 n--;
63 } while (false !== ws.write(buf) && n > 0);
64 if (n === 0)
65 ws.end();
66 }
67}
68
69function runTest(filesize, highWaterMark, encoding, n) {

Callers 1

mainFunction · 0.70

Calls 2

writeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…