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

Function afterWriteDispatched

lib/internal/stream_base_commons.js:154–164  ·  view source on GitHub ↗
(req, err, cb)

Source from the content-addressed store, hash-verified

152}
153
154function afterWriteDispatched(req, err, cb) {
155 req.bytes = streamBaseState[kBytesWritten];
156 req.async = !!streamBaseState[kLastWriteWasAsync];
157
158 if (err !== 0)
159 return cb(new ErrnoException(err, 'write', req.error));
160
161 if (!req.async && typeof req.callback === 'function') {
162 req.callback();
163 }
164}
165
166function onStreamRead(arrayBuffer) {
167 const nread = streamBaseState[kReadBytesOrError];

Callers 2

writevGenericFunction · 0.85
writeGenericFunction · 0.85

Calls 2

callbackMethod · 0.80
cbFunction · 0.50

Tested by

no test coverage detected