Skip to content

decodeDescendingBytesKey(bytes, offset?): readonly [Uint8Array<ArrayBufferLike>, number]

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

Decode one encodeDescendingBytesKey encoding at offset, returning the byte string and the offset after it.

Uint8Array

number

readonly [Uint8Array<ArrayBufferLike>, number]

INVALID_KEY_VALUE or INVALID_OFFSET, as decodeUint32Key.

TRUNCATED_KEY, INVALID_ESCAPE_SEQUENCE, or TRAILING_BYTES, as decodeBytesKey.