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

Method #recomputeMinCursor

lib/internal/streams/iter/share.js:620–625  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

618 }
619
620 #recomputeMinCursor() {
621 const { minCursor, minCursorConsumers } = getMinCursor(
622 this.#consumers, this.#bufferStart + this.#buffer.length);
623 this.#cachedMinCursor = minCursor;
624 this.#cachedMinCursorConsumers = minCursorConsumers;
625 }
626
627 #deleteConsumerFromMin(consumer) {
628 if (consumer.cursor === this.#cachedMinCursor) {

Callers 2

#createRawConsumerMethod · 0.95
#tryTrimBufferMethod · 0.95

Calls 1

getMinCursorFunction · 0.85

Tested by

no test coverage detected