package
4.0.2-stable+incompatible
Repository: https://github.com/algorand/go-algorand.git
Documentation: pkg.go.dev

# Functions

Deserialize returns a nibble array from the byte array.
Equal returns true if the two nibble arrays are equal [0x1, 0x2, 0x3], [0x1, 0x2, 0x3] -> true [0x1, 0x2, 0x3], [0x1, 0x2, 0x4] -> false [0x1, 0x2, 0x3], [0x1] -> false [0x1, 0x2, 0x3], [0x1, 0x2, 0x3, 0x4] -> false [], [] -> true [], [0x1] -> false.
Pack the nibble array into a byte array.
Serialize returns a byte array that represents the Nibbles an empty nibble array is serialized as a single byte with value 0x3 as the empty nibble is considered to be full width [0x1, 0x2, 0x3] -> [0x12, 0x30, 0x01] [0x1, 0x2, 0x3, 0x4] -> [0x12, 0x34, 0x03] [] -> [0x03].
SharedPrefix returns a slice from nyb1 that contains the shared prefix between nyb1 and nyb2.
ShiftLeft returns a slice of nyb1 that contains the Nibbles after the first numNibbles.

# Type aliases

Nibbles are 4-bit values stored in an 8-bit byte arrays.