46 BitStream(std::vector<uint8_t>&& buffer,
const unsigned int numberOfBits);
51 inline unsigned int bitsRemaining()
const;
79 unsigned int bitsConsumed_ = 0u;
82 unsigned int bytesConsumed_ = 0u;
Definition MicroQRCodeDecoder.h:38
unsigned int bitsRemaining_
The number of bits remaining in the bit stream.
Definition MicroQRCodeDecoder.h:85
uint32_t consumeBits(const unsigned int numberOfBits)
Consumes a number of bits from the bit stream.
BitStream(std::vector< uint8_t > &&buffer, const unsigned int numberOfBits)
Constructor for bit streams.
unsigned int bitsRemaining() const
Returns the number of bits remaining in the bit stream.
Definition MicroQRCodeDecoder.h:97
bool consumeBit()
Consumes a single bit from the bit stream.
bool peekNonzeroBits(const unsigned int numberOfBits) const
Peeks at a number of bits from the bit stream, checking if any are non-zero.
std::vector< uint8_t > buffer_
The buffer holding the bit stream.
Definition MicroQRCodeDecoder.h:76
Definition of a QR code decoder.
Definition MicroQRCodeDecoder.h:31
static bool decodeMicroQRCode(const std::vector< uint8_t > &modules, MicroQRCode &code)
Decodes the modules of a Micro QR code.
Definition of a Micro QR code.
Definition MicroQRCode.h:35
std::vector< QRCode > QRCodes
Definition of a vector of QR codes.
Definition QRCode.h:28
The namespace covering the entire Ocean framework.
Definition Accessor.h:15