(len: number)
| 250 | } |
| 251 | |
| 252 | stringLatin1(len: number) { |
| 253 | if (len < 0 || len > this.byteLength - this.cursor) { |
| 254 | throw new Error("Insufficient bytes for Latin1 string"); |
| 255 | } |
| 256 | if (this.sliceStringEnable) { |
| 257 | return this.stringLatin1Fast(len); |
| 258 | } |
| 259 | return this.stringLatin1Slow(len); |
| 260 | } |
| 261 | |
| 262 | private stringLatin1Fast(len: number) { |
| 263 | const result = this.bigString.substring(this.cursor, this.cursor + len); |
no test coverage detected