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

Method skip

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

Source from the content-addressed store, hash-verified

58 }
59
60 async skip(n) {
61 if (this.eof()) return
62 if (!this.started) await this._init()
63 if (this.cursor + n > this.buffer.length) {
64 this._trim()
65 await this._accumulate(n)
66 }
67 this._moveCursor(n)
68 }
69
70 async undo() {
71 this.cursor = this.undoCursor

Callers

nothing calls this directly

Calls 5

eofMethod · 0.95
_initMethod · 0.95
_trimMethod · 0.95
_accumulateMethod · 0.95
_moveCursorMethod · 0.95

Tested by

no test coverage detected