46 BitStream(std::vector<uint8_t>&& buffer,
const unsigned int numberOfBits);
51 inline unsigned int bitsRemaining();
Definition: MicroQRCodeDecoder.h:38
unsigned int bitsRemaining_
The number of bits remaining in the bit stream.
Definition: MicroQRCodeDecoder.h:85
unsigned int bytesConsumed_
The number of bytes that have already been consumed.
Definition: MicroQRCodeDecoder.h:82
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()
Returns the number of bits remaining in the bit stream.
Definition: MicroQRCodeDecoder.h:97
unsigned int bitsConsumed_
The portion of the current byte that have already been consumed.
Definition: MicroQRCodeDecoder.h:79
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:25
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15