Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitArray ¶
type BitArray struct {
// contains filtered or unexported fields
}
Struct to simplify appending bits to a byte array, from left to right
func NewBitArray ¶
*
- Constructor for the BitArray struct. It must be initialized
- with a non-zero int that is a multiple of 8.
- Usage:
- bitArray,err := bitops.NewBitArray(64) *
- @method NewBitArray
- @param {int} numBits The number of bits, as an int
- @return {BitArray} The AppendBit struct
- @return {error} If there is an error
Click to show internal directories.
Click to hide internal directories.