(buf, offset = 0)
| 389 | } |
| 390 | |
| 391 | function readInt32LE(buf, offset = 0) { |
| 392 | validateNumber(offset, 'offset'); |
| 393 | const first = buf[offset]; |
| 394 | const last = buf[offset + 3]; |
| 395 | if (first === undefined || last === undefined) |
| 396 | boundsError(offset, buf.length - 4); |
| 397 | |
| 398 | return first + |
| 399 | buf[++offset] * 2 ** 8 + |
| 400 | buf[++offset] * 2 ** 16 + |
| 401 | (last << 24); // Overflow |
| 402 | } |
| 403 | |
| 404 | function readInt24LE(buf, offset = 0) { |
| 405 | validateNumber(offset, 'offset'); |
no test coverage detected
searching dependent graphs…