BitStream Class

class BitStream([auto, length, offset, pos, **kwargs])

Both the BitArray and the ConstBitStream classes are base classes for BitStream and so all of their methods are also available for BitStream objects. The initialiser is the same as for ConstBitStream.

A BitStream is a mutable container of bits with methods and properties that allow it to be parsed as a stream of bits. There are no additional methods or properties in this class - see its base classes (Bits, BitArray and ConstBitStream) for details.