(offset = 0)
| 116 | } |
| 117 | |
| 118 | function readBigUInt64BE(offset = 0) { |
| 119 | validateNumber(offset, 'offset'); |
| 120 | const first = this[offset]; |
| 121 | const last = this[offset + 7]; |
| 122 | if (first === undefined || last === undefined) |
| 123 | boundsError(offset, this.length - 8); |
| 124 | |
| 125 | const hi = first * 2 ** 24 + |
| 126 | this[++offset] * 2 ** 16 + |
| 127 | this[++offset] * 2 ** 8 + |
| 128 | this[++offset]; |
| 129 | |
| 130 | const lo = this[++offset] * 2 ** 24 + |
| 131 | this[++offset] * 2 ** 16 + |
| 132 | this[++offset] * 2 ** 8 + |
| 133 | last; |
| 134 | |
| 135 | return (BigInt(hi) << 32n) + BigInt(lo); |
| 136 | } |
| 137 | |
| 138 | function readBigInt64LE(offset = 0) { |
| 139 | validateNumber(offset, 'offset'); |
nothing calls this directly
no test coverage detected
searching dependent graphs…