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

Method writevSync

lib/internal/quic/quic.js:2196–2209  ·  view source on GitHub ↗
(chunks)

Source from the content-addressed store, hash-verified

2194 }
2195
2196 function writevSync(chunks) {
2197 if (closed || errored || stream.#inner.state.writeEnded || drainWakeup != null) {
2198 return false;
2199 }
2200 chunks = convertChunks(chunks);
2201 let len = 0;
2202 for (const c of chunks) len += TypedArrayPrototypeGetByteLength(c);
2203 if (len === 0) return true;
2204 if (stream.#inner.state.writeDesiredSize === 0) return false;
2205 const result = handle.write(chunks);
2206 if (result === undefined) return false;
2207 totalBytesWritten += len;
2208 return true;
2209 }
2210
2211 async function writev(chunks, options = kEmptyObject) {
2212 validateObject(options, 'options');

Callers 12

writevSyncFunction · 0.45
mainFunction · 0.45
testWritevSyncFunction · 0.45
testWritevSyncBasicFunction · 0.45
testFullSyncPipelineFunction · 0.45
testWritevSyncFunction · 0.45

Calls 2

convertChunksFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected