decodeInt32Key(
bytes,offset?):number
Defined in: packages/key-encoding/src/scalars.ts:79
Decode the 4-byte encodeInt32Key encoding at offset.
Parameters
Section titled “Parameters”Uint8Array
offset?
Section titled “offset?”number
Returns
Section titled “Returns”number
Throws
Section titled “Throws”INVALID_KEY_VALUE or INVALID_OFFSET, as decodeUint32Key.
Throws
Section titled “Throws”TRUNCATED_KEY when fewer than 4 bytes follow offset, or TRAILING_BYTES as
decodeUint32Key.