package bitmap
Functions
Check
Count
Count returns the number of bits that are true.
CountASM
CountASMUsingTable
LengthFor
LengthFor returns the number of bytes needed to represent the specified number of bits.
Types
Bitmap
New
New creates a new bitmap of the specified length. A bitmap is a slice of bytes where each bit represents a boolean value. The length is the number of bits that the bitmap will represent. The length is rounded up to the nearest byte.
NewTrue
NewTrue creates a new bitmap of the specified length with all bits true
Bitmap.Assign
Assign sets the bit at the specified index to the specified value.
Bitmap.Clear
Clear sets all bits to false.
Bitmap.CountInverse
CountInverse returns the number of bits that are false.
Bitmap.Reset
Reset sets the bit at the specified index to false.
Bitmap.Set
Set sets the bit at the specified index to true.
Bitmap.Toggle
Toggle flips the value of the bit at the specified index.