The BitStream class¶
-
class
bitstring.BitStream([auto, length, offset, **kwargs])¶ Both the
BitArrayand theConstBitStreamclasses are base classes forBitStreamand so all of their methods are also available forBitStreamobjects. The initialiser is also the same as forBitsand so won’t be repeated here.A
BitStreamis 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,BitArrayandConstBitStream) for details.