MCPcopy Create free account
hub / github.com/aiscript-dev/aiscript / decAddr

Method decAddr

src/parser/streams/char-stream.ts:137–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135 }
136
137 private decAddr(): void {
138 if (this.address > 0) {
139 this.address -= getLastUnicodeChar(this.pages.get(this.pageIndex)!, this.address)!.length;
140 } else if (!this.isFirstPage) {
141 this.pageIndex--;
142 const page = this.pages.get(this.pageIndex)!;
143 this.address = page.length - getLastUnicodeChar(page)!.length;
144 }
145 }
146
147 private loadChar(): void {
148 if (this.eof) {

Callers 2

prevMethod · 0.95
movePrevMethod · 0.95

Calls 2

getLastUnicodeCharFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected