NDEVR
API Documentation
QRBitBufferfinal

An appendable sequence of bits (0s and 1s), mainly used by QrSegment. More...

Inheritance diagram for QRBitBuffer:
[legend]
Collaboration diagram for QRBitBuffer:
[legend]

Public Member Functions

 QRBitBuffer ()
 Constructs an empty bit buffer.
void appendBits (uint04 val, uint04 len)
 Appends the given number of low-order bits of the given value to this buffer.
Public Member Functions inherited from Buffer< bool >
constexpr Buffer () noexcept
 Creates an empty buffer.
 ~Buffer ()
void add (bool &&object)
 Adds object to the end of the buffer.
void addSpace (t_index_type space_to_add)
 Adds a space to the end of the buffer.
operator decltype auto () const
 Gets the first location of type* in the array.
sint04 compare (const Buffer &value) const
 Compares this Buffer to another to determine their relative ordering.
Buffer< t_other_type, t_other_memory_manager > getAs () const
 Gets a copy of this buffer, with filled objects t_other_type, where all objects are created using the contents of this buffer.
void insert (t_index_type location, const bool &object)
 Adds an object to a specific location.
void removeAllOrdered (const bool &object)
 Removes all instances of the object.
void removeAllOrderedFn (const t_functor &functor)
 Removes all items based on the functor.
void removeAllUnordered (const bool &object)
 Removes all unordered described by object.

Detailed Description

An appendable sequence of bits (0s and 1s), mainly used by QrSegment.

Definition at line 710 of file QRCode.h.

Member Function Documentation

◆ appendBits()

void QRBitBuffer::appendBits ( uint04 val,
uint04 len )

Appends the given number of low-order bits of the given value to this buffer.

Requires 0 <= len <= 31 and val < 2^len.

Parameters
[in]valThe value whose low-order bits to append.
[in]lenThe number of low-order bits to append from val.

The documentation for this class was generated from the following file: