(buf, offset = 0)
| 424 | } |
| 425 | |
| 426 | function readInt8(buf, offset = 0) { |
| 427 | validateNumber(offset, 'offset'); |
| 428 | const val = buf[offset]; |
| 429 | if (val === undefined) |
| 430 | boundsError(offset, buf.length - 1); |
| 431 | |
| 432 | return val | (val & 2 ** 7) * 0x1fffffe; |
| 433 | } |
| 434 | |
| 435 | function readIntBE(offset, byteLength) { |
| 436 | if (offset === undefined) |
no test coverage detected
searching dependent graphs…