Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearBit ¶
ClearBit clears the bit at index `i` in the byte slice `b`, i.e. it assigns value 0 to the bit. The function panics, if the byte slice is too short.
func MakeBitVector ¶
MakeBitVector allocates a byte slice of minimal size that can hold numberBits.
func MinimalByteSliceLength ¶
MinimalByteSliceLength returns the minimal length of a byte slice that can store n bits.
func ReadBit ¶
ReadBit returns the bit at index `idx` in the byte array `b` (big endian) The function panics, if the byte slice is too short.
func SetBit ¶
SetBit sets the bit at index `i` in the byte array `b`, i.e. it assigns value 1 to the bit. The function panics, if the byte slice is too short.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.