Documentation ¶
Overview ¶
Package nibbles is a library for representing sequences of 4-bit values.
Index ¶
- type Nibbles
- func (n Nibbles) Append(value byte) Nibbles
- func (n Nibbles) AppendSlice(m Nibbles) Nibbles
- func (n Nibbles) Cap() int
- func (n Nibbles) Copy(m Nibbles) int
- func (n Nibbles) Get(index int) byte
- func (n Nibbles) Len() int
- func (n Nibbles) ReflectValue() (len, offset int, bytes []byte)
- func (n Nibbles) Set(index int, value byte)
- func (n Nibbles) Slice(low, high int) Nibbles
- func (n Nibbles) Slice3(low, high, max int) Nibbles
- func (n Nibbles) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Nibbles ¶
type Nibbles struct {
// contains filtered or unexported fields
}
Nibbles is a slice-like data structure for storing sequences of 4-bit values.
func ReflectMake ¶
ReflectMake creates nibbles of the given length, offset, and raw byte slice.
func (Nibbles) AppendSlice ¶
AppendSlice appends the given nibbles.
func (Nibbles) ReflectValue ¶
ReflectValue returns the underlying representation of the nibbles.
Click to show internal directories.
Click to hide internal directories.