Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bytes ¶
type Bytes []byte
Bytes the bitset []byte
func NewBytes ¶
NewBytes returns a new bitset that is capable of holding numBits number of binary values. All bytes in the bitset are zeroed and each bit is therefore considered unset.
func (Bytes) Get ¶
Get returns whether the bit at index i is set or not. This method will panic if the index results in a byte index that exceeds the number of bytes held by the bitset.
func (*Bytes) Grow ¶
Grow ensures that the bitset s is large enough to hold numBits number of bits, potentially appending to and/or reallocating the slice if the current length is not sufficient.
func (Bytes) Set ¶
Set sets the bit at index i. This method will panic if the index results in a byte index that exceeds the number of a bytes held by the bitset.