(buf, offset = 0)
| 219 | } |
| 220 | |
| 221 | function readUInt32LE(buf, offset = 0) { |
| 222 | validateNumber(offset, 'offset'); |
| 223 | const first = buf[offset]; |
| 224 | const last = buf[offset + 3]; |
| 225 | if (first === undefined || last === undefined) |
| 226 | boundsError(offset, buf.length - 4); |
| 227 | |
| 228 | return first + |
| 229 | buf[++offset] * 2 ** 8 + |
| 230 | buf[++offset] * 2 ** 16 + |
| 231 | last * 2 ** 24; |
| 232 | } |
| 233 | |
| 234 | function readUInt24LE(buf, offset = 0) { |
| 235 | validateNumber(offset, 'offset'); |
no test coverage detected
searching dependent graphs…