The BitStream class¶
-
class
bitstring.
BitStream
([auto, length, offset, **kwargs])¶ Both the
BitArray
and theConstBitStream
classes are base classes forBitStream
and so all of their methods are also available forBitStream
objects. The initialiser is also the same as forBits
and so won’t be repeated here.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
andConstBitStream
) for details.