(buf, offset = 0)
| 331 | } |
| 332 | |
| 333 | function readUInt16BE(buf, offset = 0) { |
| 334 | validateNumber(offset, 'offset'); |
| 335 | const first = buf[offset]; |
| 336 | const last = buf[offset + 1]; |
| 337 | if (first === undefined || last === undefined) |
| 338 | boundsError(offset, buf.length - 2); |
| 339 | |
| 340 | return first * 2 ** 8 + last; |
| 341 | } |
| 342 | |
| 343 | function readIntLE(offset, byteLength) { |
| 344 | if (offset === undefined) |
no test coverage detected
searching dependent graphs…