MCPcopy Create free account
hub / github.com/nodejs/node / advanceCursor

Method advanceCursor

deps/undici/undici.js:16619–16625  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16617 this.syncLineStartToCursor();
16618 }
16619 advanceCursor() {
16620 this.pos++;
16621 while (this.chunkIndex < this.chunks.length && this.pos >= this.chunks[this.chunkIndex].length) {
16622 this.chunkIndex++;
16623 this.pos = 0;
16624 }
16625 }
16626 syncLineStartToCursor() {
16627 this.lineChunkIndex = this.chunkIndex;
16628 this.linePos = this.pos;

Callers 2

_transformMethod · 0.45
consumeCurrentByteMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected