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

Function readableStreamBYOBReaderRead

lib/internal/webstreams/readablestream.js:2418–2433  ·  view source on GitHub ↗
(reader, view, min, readIntoRequest)

Source from the content-addressed store, hash-verified

2416}
2417
2418function readableStreamBYOBReaderRead(reader, view, min, readIntoRequest) {
2419 const {
2420 stream,
2421 } = reader[kState];
2422 assert(stream !== undefined);
2423 stream[kState].disturbed = true;
2424 if (stream[kState].state === 'errored') {
2425 readIntoRequest[kError](stream[kState].storedError);
2426 return;
2427 }
2428 readableByteStreamControllerPullInto(
2429 stream[kState].controller,
2430 view,
2431 min,
2432 readIntoRequest);
2433}
2434
2435function readableStreamDefaultReaderRead(reader, readRequest) {
2436 const {

Callers 2

readMethod · 0.85
pullWithBYOBReaderFunction · 0.85

Calls 2

assertFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…