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

Function canPushMore

lib/internal/streams/readable.js:549–555  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

547}
548
549function canPushMore(state) {
550 // We can push more data if we are below the highWaterMark.
551 // Also, if we have no data yet, we can stand some more bytes.
552 // This is to work around cases where hwm=0, such as the repl.
553 return (state[kState] & kEnded) === 0 &&
554 (state.length < state.highWaterMark || state.length === 0);
555}
556
557function addChunk(stream, state, chunk, addToFront) {
558 if ((state[kState] & (kFlowing | kSync | kDataListening)) === (kFlowing | kDataListening) && state.length === 0) {

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…