(buf, offset = 0)
| 321 | } |
| 322 | |
| 323 | function readUInt24BE(buf, offset = 0) { |
| 324 | validateNumber(offset, 'offset'); |
| 325 | const first = buf[offset]; |
| 326 | const last = buf[offset + 2]; |
| 327 | if (first === undefined || last === undefined) |
| 328 | boundsError(offset, buf.length - 3); |
| 329 | |
| 330 | return first * 2 ** 16 + buf[++offset] * 2 ** 8 + last; |
| 331 | } |
| 332 | |
| 333 | function readUInt16BE(buf, offset = 0) { |
| 334 | validateNumber(offset, 'offset'); |
no test coverage detected
searching dependent graphs…