(value, length, type)
| 81 | } |
| 82 | |
| 83 | function boundsError(value, length, type) { |
| 84 | if (MathFloor(value) !== value) { |
| 85 | validateNumber(value, type); |
| 86 | throw new ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value); |
| 87 | } |
| 88 | |
| 89 | if (length < 0) |
| 90 | throw new ERR_BUFFER_OUT_OF_BOUNDS(); |
| 91 | |
| 92 | throw new ERR_OUT_OF_RANGE(type || 'offset', |
| 93 | `>= ${type ? 1 : 0} and <= ${length}`, |
| 94 | value); |
| 95 | } |
| 96 | |
| 97 | // Read integers. |
| 98 | function readBigUInt64LE(offset = 0) { |
no outgoing calls
no test coverage detected
searching dependent graphs…