: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:method:: read(field_type: dissect.cstruct.types.RawType, bits: Union[int, bytes]) -> int .. py:method:: write(field_type: dissect.cstruct.types.RawType, data: int, bits: int) -> None .. py:method:: flush() -> None .. py:method:: reset() -> None