Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BitSet ¶
type BitSet struct { // The underlying byte slice that holds the bits. Bytes []byte }
BitSet represents a set of Bytes that can be set and cleared.
func (*BitSet) Clear ¶
Clear sets the bit at the given index to 0. If the index is greater than the current length of the BitSet, the BitSet is automatically grown to accommodate the new index.
func (*BitSet) Set ¶
Set sets the bit at the given index to 1. If the index is greater than the current length of the BitSet, the BitSet is automatically grown to accommodate the new index.
func (*BitSet) SetBool ¶
SetBool sets the bit at the given index to the given value. If the index is greater than the current length of the BitSet, the BitSet is automatically grown to accommodate the new index.
Click to show internal directories.
Click to hide internal directories.