(buf, offset = 0)
| 308 | } |
| 309 | |
| 310 | function readUInt32BE(buf, offset = 0) { |
| 311 | validateNumber(offset, 'offset'); |
| 312 | const first = buf[offset]; |
| 313 | const last = buf[offset + 3]; |
| 314 | if (first === undefined || last === undefined) |
| 315 | boundsError(offset, buf.length - 4); |
| 316 | |
| 317 | return first * 2 ** 24 + |
| 318 | buf[++offset] * 2 ** 16 + |
| 319 | buf[++offset] * 2 ** 8 + |
| 320 | last; |
| 321 | } |
| 322 | |
| 323 | function readUInt24BE(buf, offset = 0) { |
| 324 | validateNumber(offset, 'offset'); |
no test coverage detected
searching dependent graphs…