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
}
BitArray is a fast, memory-efficient implementation of a bit (bool) array. Use the NewBitArray function to create one.
func FromBytes ¶
FromBytes creates a new BitArray with the provided bytes as initial values. Beware that the src slice is *NOT* copied, so mutating it will change the inner state of this Array.
func NewBitArray ¶
NewBitArray creates and returns a new BitArray with the specified size
func (BitArray) Expose ¶
Expose exposes the underlying byte array. Only use this read-only or you will change the inner state of this struct, which can cause unexpected behavior
Click to show internal directories.
Click to hide internal directories.