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

Method writev

lib/internal/streams/iter/push.js:577–588  ·  view source on GitHub ↗
(chunks, options)

Source from the content-addressed store, hash-verified

575 }
576
577 writev(chunks, options) {
578 if (!ArrayIsArray(chunks)) {
579 throw new ERR_INVALID_ARG_TYPE('chunks', 'Array', chunks);
580 }
581 if (!options?.signal && this.#queue.canWriteSync()) {
582 const bytes = convertChunks(chunks);
583 this.#queue.writeSync(bytes);
584 return kResolvedPromise;
585 }
586 const bytes = convertChunks(chunks);
587 return this.#queue.writeAsync(bytes, options?.signal);
588 }
589
590 writeSync(chunk) {
591 const bytes = toUint8Array(chunk);

Callers 2

_writevFunction · 0.45
writeBatchFunction · 0.45

Calls 4

convertChunksFunction · 0.85
canWriteSyncMethod · 0.80
writeAsyncMethod · 0.80
writeSyncMethod · 0.45

Tested by

no test coverage detected