(offset = 0)
| 136 | } |
| 137 | |
| 138 | function readBigInt64LE(offset = 0) { |
| 139 | validateNumber(offset, 'offset'); |
| 140 | const first = this[offset]; |
| 141 | const last = this[offset + 7]; |
| 142 | if (first === undefined || last === undefined) |
| 143 | boundsError(offset, this.length - 8); |
| 144 | |
| 145 | const val = this[offset + 4] + |
| 146 | this[offset + 5] * 2 ** 8 + |
| 147 | this[offset + 6] * 2 ** 16 + |
| 148 | (last << 24); // Overflow |
| 149 | return (BigInt(val) << 32n) + |
| 150 | BigInt(first + |
| 151 | this[++offset] * 2 ** 8 + |
| 152 | this[++offset] * 2 ** 16 + |
| 153 | this[++offset] * 2 ** 24); |
| 154 | } |
| 155 | |
| 156 | function readBigInt64BE(offset = 0) { |
| 157 | validateNumber(offset, 'offset'); |
nothing calls this directly
no test coverage detected
searching dependent graphs…