()
| 607 | } |
| 608 | |
| 609 | #tryTrimBuffer() { |
| 610 | if (this.#cachedMinCursorConsumers === 0) { |
| 611 | this.#recomputeMinCursor(); |
| 612 | } |
| 613 | const trimCount = this.#cachedMinCursor - this.#bufferStart; |
| 614 | if (trimCount > 0) { |
| 615 | this.#buffer.trimFront(trimCount); |
| 616 | this.#bufferStart = this.#cachedMinCursor; |
| 617 | } |
| 618 | } |
| 619 | |
| 620 | #recomputeMinCursor() { |
| 621 | const { minCursor, minCursorConsumers } = getMinCursor( |
nothing calls this directly
no test coverage detected