Files
common/docs/trie-db/modules/_util_key_.md
T
2018-11-14 12:53:23 +00:00

2.8 KiB

Functions

computeExtensionKey

▸ computeExtensionKey(nibbles: Uint8Array): EncodedPath

Defined in util/key.ts:50

Parameters:

Param Type
nibbles Uint8Array

Returns: EncodedPath


computeLeafKey

▸ computeLeafKey(nibbles: Uint8Array): EncodedPath

Defined in util/key.ts:54

Parameters:

Param Type
nibbles Uint8Array

Returns: EncodedPath


consumeCommonPrefix

▸ consumeCommonPrefix(left: Uint8Array, right: Uint8Array): [Uint8Array, Uint8Array, Uint8Array]

Defined in util/key.ts:70

Parameters:

Param Type
left Uint8Array
right Uint8Array

Returns: [Uint8Array, Uint8Array, Uint8Array]


extractKey

▸ extractKey(node: Node): Uint8Array

Defined in util/key.ts:12

Parameters:

Param Type
node Node

Returns: Uint8Array


getCommonPrefixLength

▸ getCommonPrefixLength(left: Uint8Array, right: Uint8Array): number

Defined in util/key.ts:60

Parameters:

Param Type
left Uint8Array
right Uint8Array

Returns: number


keyEquals

▸ keyEquals(key: * Uint8Array | null, test: * Uint8Array | null): boolean

Defined in util/key.ts:24

Parameters:

Param Type
key Uint8Array | null
test Uint8Array | null

Returns: boolean


keyStartsWith

▸ keyStartsWith(key: * Uint8Array | null, partial: * Uint8Array | null): boolean

Defined in util/key.ts:34

Parameters:

Param Type
key Uint8Array | null
partial Uint8Array | null

Returns: boolean