A bit buffer using dynamic allocation.
- See also
-
Definition at line 421 of file bitbuffer.inl.
◆ storage
std::vector<TStorage> alib::bitbuffer::BitBuffer::storage |
|
protected |
◆ BitBuffer()
alib::bitbuffer::BitBuffer::BitBuffer |
( |
uinteger | initialCapacity | ) |
|
|
inline |
Constructor.
- Parameters
-
initialCapacity | The requested initial capacity of the buffer in bits. |
Definition at line 432 of file bitbuffer.inl.
◆ Capacity()
virtual uinteger alib::bitbuffer::BitBuffer::Capacity |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ EnsureCapacity()
Checks if the given required storage space is internally reserved. If not, the internal capacity is doubled, or, if more is required, set to the required space.
- Parameters
-
bitsRequired | The number of bits required. |
idx | The index of current buffer use. |
- Returns
true
if the space is available or could be made available, false
otherwise.
Implements alib::bitbuffer::BitBufferBase.
Definition at line 455 of file bitbuffer.inl.
The documentation for this class was generated from the following file: