(buf, offset = 0)
| 205 | } |
| 206 | |
| 207 | function readUInt40LE(buf, offset = 0) { |
| 208 | validateNumber(offset, 'offset'); |
| 209 | const first = buf[offset]; |
| 210 | const last = buf[offset + 4]; |
| 211 | if (first === undefined || last === undefined) |
| 212 | boundsError(offset, buf.length - 5); |
| 213 | |
| 214 | return first + |
| 215 | buf[++offset] * 2 ** 8 + |
| 216 | buf[++offset] * 2 ** 16 + |
| 217 | buf[++offset] * 2 ** 24 + |
| 218 | last * 2 ** 32; |
| 219 | } |
| 220 | |
| 221 | function readUInt32LE(buf, offset = 0) { |
| 222 | validateNumber(offset, 'offset'); |
no test coverage detected
searching dependent graphs…