(buf, offset = 0)
| 242 | } |
| 243 | |
| 244 | function readUInt16LE(buf, offset = 0) { |
| 245 | validateNumber(offset, 'offset'); |
| 246 | const first = buf[offset]; |
| 247 | const last = buf[offset + 1]; |
| 248 | if (first === undefined || last === undefined) |
| 249 | boundsError(offset, buf.length - 2); |
| 250 | |
| 251 | return first + last * 2 ** 8; |
| 252 | } |
| 253 | |
| 254 | function readUInt8(buf, offset = 0) { |
| 255 | validateNumber(offset, 'offset'); |
no test coverage detected
searching dependent graphs…