Skip to content

decodeInt32Key(bytes, offset?): number

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

Decode the 4-byte encodeInt32Key encoding at offset.

Uint8Array

number

number

INVALID_KEY_VALUE or INVALID_OFFSET, as decodeUint32Key.

TRUNCATED_KEY when fewer than 4 bytes follow offset, or TRAILING_BYTES as decodeUint32Key.