# Functions
BitIsNotSet returns true if the bit at index i in buf is not set (0).
BitIsSet returns true if the bit at index i in buf is set (1).
No description provided by the author
CeilByte rounds size to the next multiple of 8.
CeilByte64 rounds size to the next multiple of 8.
ClearBit sets the bit at index i in buf to 0.
CopyBitmap copies the bitmap indicated by src, starting at bit offset srcOffset, and copying length bits into dst, starting at bit offset dstOffset.
CountSetBits counts the number of 1's in buf up to n bits.
IsMultipleOf64 returns whether v is a multiple of 64.
IsMultipleOf8 returns whether v is a multiple of 8.
NewBitmapReader creates and returns a new bitmap reader for the given bitmap.
NewBitmapWordReader sets up a word reader, calculates the number of trailing bits and number of trailing bytes, along with the number of words.
NewBitmapWordWriter initializes a new bitmap word writer which will start writing into the byte slice at bit offset start, expecting to write len bits.
NewBitmapWriter returns a sequential bitwise writer that preserves surrounding bit values as it writes.
NextPowerOf2 rounds x to the next power of two.
SetBit sets the bit at index i in buf to 1.
SetBitsTo is a convenience function to quickly set or unset all the bits in a bitmap starting at startOffset for length bits.
SetBitTo sets the bit at index i in buf to val.
# Variables
No description provided by the author
No description provided by the author
PrecedingBitmask is a convenience set of values as bitmasks for checking prefix bits of a byte.
TrailingBitmask is the bitwise complement version of kPrecedingBitmask.
# Structs
BitmapReader is a simple bitmap reader for a byte slice.
BitmapWordReader is a reader for bitmaps that reads a word at a time (a word being an 8 byte uint64) and then provides functions to grab the individual trailing bytes after the last word.
BitmapWordWriter is a bitmap writer for writing a full word at a time (a word being a uint64).
BitmapWriter is a simple writer for writing bitmaps to byte slices.