(buffer: Uint8Array)
| 1589 | } |
| 1590 | |
| 1591 | function bodyOnlyHeaderHashBits(buffer: Uint8Array) { |
| 1592 | const hash = x64hash128(buffer, 47); |
| 1593 | let header = BigInt.asIntN(64, hash.getBigInt64(0, false) << HASH_SHIFT_BITS); |
| 1594 | if (header < 0n) { |
| 1595 | header = -header; |
| 1596 | } |
| 1597 | return BigInt.asUintN(64, header) & HEADER_HASH_MASK; |
| 1598 | } |
no test coverage detected