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

Function writeGeneric

lib/internal/stream_base_commons.js:146–152  ·  view source on GitHub ↗
(self, data, encoding, cb)

Source from the content-addressed store, hash-verified

144}
145
146function writeGeneric(self, data, encoding, cb) {
147 const req = createWriteWrap(self[kHandle], cb);
148 const err = handleWriteReq(req, data, encoding);
149
150 afterWriteDispatched(req, err, cb);
151 return req;
152}
153
154function afterWriteDispatched(req, err, cb) {
155 req.bytes = streamBaseState[kBytesWritten];

Callers 2

net.jsFile · 0.85
[kWriteGeneric]Method · 0.85

Calls 3

handleWriteReqFunction · 0.85
afterWriteDispatchedFunction · 0.85
createWriteWrapFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…