(start: number, len: number)
| 291 | } |
| 292 | |
| 293 | bufferRefAt(start: number, len: number) { |
| 294 | if (start < 0 || len < 0 || start > this.byteLength - len) { |
| 295 | throw new Error("Insufficient bytes for buffer reference"); |
| 296 | } |
| 297 | return this.platformBuffer.subarray(start, start + len); |
| 298 | } |
| 299 | |
| 300 | readVarUInt32() { |
| 301 | // Reduce memory reads as much as possible. Reading a uint32 at once is far faster than reading four uint8s separately. |
no test coverage detected