Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
69
function
runTest(filesize, highWaterMark, encoding, n) {
Callers
1
main
Function · 0.70
Calls
2
write
Method · 0.45
end
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…