package
1.0.36
Repository: https://github.com/jekamas/go-datastructures.git
Documentation: pkg.go.dev

# Functions

Marshal takes a dense or sparse bit array and serializes it to a byte slice.
NewBitArray returns a new BitArray at the specified size.
NewSparseBitArray will create a bit array that consumes a great deal less memory at the expense of longer sets and gets.
This function is a copy from the binary package, with some added error checking to avoid panics.
Unmarshal takes a byte slice, of the same format produced by Marshal, and returns a BitArray.

# Interfaces

BitArray represents a structure that can be used to quickly check for existence when using a large number of items in a very memory efficient way.
Iterator defines methods used to iterate over a bit array.

# Type aliases

Bitmap32 tracks 32 bool values within a uint32.
Bitmap64 tracks 64 bool values within a uint64.
OutOfRangeError is an error caused by trying to access a bitarray past the end of its capacity.