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

Function maybeReadMore

lib/internal/streams/readable.js:871–876  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

869// However, if we're not ended, or reading, and the length < hwm,
870// then go ahead and try to read some more preemptively.
871function maybeReadMore(stream, state) {
872 if ((state[kState] & (kReadingMore | kReading | kConstructed)) === kConstructed) {
873 state[kState] |= kReadingMore;
874 process.nextTick(maybeReadMore_, stream, state);
875 }
876}
877
878function maybeReadMore_(stream, state) {
879 // Attempt to read more data if we should.

Callers 3

readable.jsFile · 0.85
addChunkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected