struct
BitLength
Encodes a length in bits, as a number of bytes and the number of leftover bits.
Public
Constructors
BitLength
BitLength(uint32_t bytes = 0, uint8_t bits = 0)
Methods
GetBits
uint64_t GetBits() const
Returns the encoded length in number of bits.
staticFromBits
static BitLength FromBits(uint64_t bits)
Constructs a new bit length object from a number of bits.
Fields
Bytes
uint32_t Bytes
Bits
uint8_t Bits
Operators
operator==
operator!=
operator<
operator<=
operator>
operator>=
operator*
operator*=
BitLength &operator*=(const uint32_t &rhs)