term.bitstring

Bitstrings whose length is not a whole number of bytes.

class term.bitstring.BitString(val, last_byte_bits)

Bases: BaseTerm

A bitstring: bytes whose last byte holds only last_byte_bits (1..8) significant bits, the high ones. Encodes back to an Erlang bitstring. Decoded with the option "bitstring": "BitString".