(buf, offset = 0)
| 232 | } |
| 233 | |
| 234 | function readUInt24LE(buf, offset = 0) { |
| 235 | validateNumber(offset, 'offset'); |
| 236 | const first = buf[offset]; |
| 237 | const last = buf[offset + 2]; |
| 238 | if (first === undefined || last === undefined) |
| 239 | boundsError(offset, buf.length - 3); |
| 240 | |
| 241 | return first + buf[++offset] * 2 ** 8 + last * 2 ** 16; |
| 242 | } |
| 243 | |
| 244 | function readUInt16LE(buf, offset = 0) { |
| 245 | validateNumber(offset, 'offset'); |
no test coverage detected
searching dependent graphs…