(buf, offset = 0)
| 294 | } |
| 295 | |
| 296 | function readUInt40BE(buf, offset = 0) { |
| 297 | validateNumber(offset, 'offset'); |
| 298 | const first = buf[offset]; |
| 299 | const last = buf[offset + 4]; |
| 300 | if (first === undefined || last === undefined) |
| 301 | boundsError(offset, buf.length - 5); |
| 302 | |
| 303 | return first * 2 ** 32 + |
| 304 | buf[++offset] * 2 ** 24 + |
| 305 | buf[++offset] * 2 ** 16 + |
| 306 | buf[++offset] * 2 ** 8 + |
| 307 | last; |
| 308 | } |
| 309 | |
| 310 | function readUInt32BE(buf, offset = 0) { |
| 311 | validateNumber(offset, 'offset'); |
no test coverage detected
searching dependent graphs…