nibble

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const Size = 16

Variables

This section is empty.

Functions

This section is empty.

Types

type Nibbles

type Nibbles[Key key.Keyable] interface {
	Consume() (uint8, Nibbles[Key], bool)
	ByteOffset() int
	Branch(Key) Nibbles[Key]
}

Nibbles is an interface used to consume 4-bit values from a Key

func Make

func Make[Key key.Keyable](k Key) Nibbles[Key]

Make constructs a new set of Nibbles from the provided Key

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL