Documentation
¶
Overview ¶
Package bitmask provides an API for creating and manipulating bitmasks of arbitrary length.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mask ¶
type Mask struct {
// contains filtered or unexported fields
}
Mask is a bitmask of arbitrary length. The zero value is a Mask of length 0.
func (*Mask) Clear ¶
Clear sets the bit at the given index to 0. Clear panics if index is out of range.
func (*Mask) Reset ¶
Reset zeroes out the mask and resets it to the given length. Reset panics if length is less than 1.
Click to show internal directories.
Click to hide internal directories.