ErlangBitstring¶
A bitstring that is not a whole number of bytes.
used_bits_in_last_byte is 1..7 for a partial bitstring. Only those bits
travel: the unused low bits of the last byte are cleared on construction, so
a value always matches what comes back off the wire.
A bitstring that is a whole number of bytes is an ErlangBinary on the
wire, and decodes as one. An empty value has no last byte to count, so it is
stored as a whole byte too.
Implements¶
- Equatable[ErlangBitstring val] ref
- Hashable ref
Constructors¶
create¶
Parameters¶
Returns¶
- ErlangBitstring val^
Public fields¶
let value: String val¶
let used_bits_in_last_byte: U8 val¶
Public Functions¶
eq¶
Parameters¶
- that: ErlangBitstring val
Returns¶
- Bool val
hash¶
Returns¶
- USize val
ne¶
Parameters¶
- that: ErlangBitstring val
Returns¶
- Bool val