Skip to content

decodeFloat64Key(bytes, offset?): number

Defined in: packages/key-encoding/src/scalars.ts:169

Decode the 8-byte encodeFloat64Key encoding at offset.

Uint8Array

number

number

INVALID_KEY_VALUE or INVALID_OFFSET, as decodeUint32Key.

TRUNCATED_KEY when fewer than 8 bytes follow offset, TRAILING_BYTES as decodeUint32Key, or NON_CANONICAL_FLOAT64 when the bytes hold a NaN or -0 pattern, which no encoder writes.