# 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.
# Type aliases
OutOfRangeError is an error caused by trying to access a bitarray past the end of its capacity.