Module Contents

class pex.string.bit_reader.BitReader(data_bytes: bytes)

Bases: object

Subclass of pex.string module.

This subclass of pex.string module is intended for providing BitReader Python implementation.

get_bit() int

Get represented bit.

Return int:

represented bit

get_bits(num: int) int

Get represented bits depending on given number.


num (int) – number

Return int:

represented bit

get_byte() int

Get represented byte.

Return int:

represented byte

__len__() int

Get lenght of represented bits.

Return int:

length of represented bits