MCPcopy Create free account
hub / github.com/nodejs/node / #recomputeMinCursor

Method #recomputeMinCursor

lib/internal/streams/iter/broadcast.js:377–382  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

375 // Private methods
376
377 #recomputeMinCursor() {
378 const { minCursor, minCursorConsumers } = getMinCursor(
379 this.#consumers, this.#bufferStart + this.#buffer.length);
380 this.#cachedMinCursor = minCursor;
381 this.#cachedMinCursorConsumers = minCursorConsumers;
382 }
383
384 #tryTrimBuffer() {
385 if (this.#cachedMinCursorConsumers === 0) {

Callers 3

#createRawConsumerMethod · 0.95
[kWrite]Method · 0.95
#tryTrimBufferMethod · 0.95

Calls 1

getMinCursorFunction · 0.85

Tested by

no test coverage detected