MCPcopy Create free account
hub / github.com/isomorphic-git/isomorphic-git / _moveCursor

Method _moveCursor

src/utils/StreamReader.js:96–102  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

94 }
95
96 _moveCursor(n) {
97 this.undoCursor = this.cursor
98 this.cursor += n
99 if (this.cursor > this.buffer.length) {
100 this.cursor = this.buffer.length
101 }
102 }
103
104 async _accumulate(n) {
105 if (this._ended) return

Callers 4

byteMethod · 0.95
chunkMethod · 0.95
readMethod · 0.95
skipMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected