:py:mod:`dissect.cstruct.bitbuffer` =================================== .. py:module:: dissect.cstruct.bitbuffer Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: dissect.cstruct.bitbuffer.BitBuffer .. py:class:: BitBuffer(stream: BinaryIO, endian: str) Implements a bit buffer that can read and write bit fields. .. py:attribute:: stream .. py:attribute:: endian .. py:method:: read(field_type: type[dissect.cstruct.types.BaseType], bits: int) -> int .. py:method:: write(field_type: type[dissect.cstruct.types.BaseType], data: int, bits: int) -> None .. py:method:: flush() -> None .. py:method:: reset() -> None