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

Method byte

src/utils/StreamReader.js:27–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 }
26
27 async byte() {
28 if (this.eof()) return
29 if (!this.started) await this._init()
30 if (this.cursor === this.buffer.length) {
31 await this._loadnext()
32 if (this._ended) return
33 }
34 this._moveCursor(1)
35 return this.buffer[this.undoCursor]
36 }
37
38 async chunk() {
39 if (this.eof()) return

Callers 1

parseHeaderFunction · 0.80

Calls 4

eofMethod · 0.95
_initMethod · 0.95
_loadnextMethod · 0.95
_moveCursorMethod · 0.95

Tested by

no test coverage detected