Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrefixMatchedLen ¶
[0,1,2,3], [0,1,2] => 3 [0,1,2,3], [0,1,2,3] => 4 [0,1,2,3], [0,1,2,3,4] => 4
Types ¶
type Nibble ¶
type Nibble byte
func FromNibbleByte ¶
func FromNibbleBytes ¶
nibbles contain one nibble per byte
func FromString ¶
func ToPrefixed ¶
ToPrefixed add nibble prefix to a slice of nibbles to make its length even the prefix indicts whether a node is a leaf node.
Click to show internal directories.
Click to hide internal directories.