|
Zserio C++17 runtime library 1.3.0
Built for Zserio 2.20.0
|
#include <BitStreamWriter.h>
Classes | |
| class | InsufficientCapacityException |
Public Types | |
| using | BitPosType = size_t |
Writer class which allows to write various data to the bit stream.
Definition at line 22 of file BitStreamWriter.h.
Type for bit position.
Definition at line 35 of file BitStreamWriter.h.
|
explicit |
Constructor from externally allocated byte buffer.
| buffer | External byte buffer to create from. |
| bufferBitSize | Size of the buffer in bits. |
Definition at line 321 of file BitStreamWriter.cpp.
Constructor from externally allocated byte buffer.
| buffer | External byte buffer to create from. |
| bufferByteSize | Size of the buffer in bytes. |
Definition at line 327 of file BitStreamWriter.cpp.
Constructor from externally allocated byte buffer.
| buffer | External buffer to create from as a Span. |
Definition at line 331 of file BitStreamWriter.cpp.
Constructor from externally allocated byte buffer with exact bit size.
| buffer | External buffer to create from as a Span. |
| bufferBitSize | Size of the buffer in bits. |
Definition at line 337 of file BitStreamWriter.cpp.
|
inlineexplicit |
Constructor from externally allocated bit buffer.
| bitBuffer | External bit buffer to create from. |
Definition at line 74 of file BitStreamWriter.h.
|
default |
Destructor.
|
delete |
Copying and moving is disallowed!
|
delete |
Copying and moving is disallowed!
Moves current bit position to perform the requested bit alignment.
| alignment | Size of the alignment in bits. |
Definition at line 531 of file BitStreamWriter.cpp.
|
inline |
Gets current bit position.
Definition at line 279 of file BitStreamWriter.h.
Gets the write buffer as span.
Definition at line 546 of file BitStreamWriter.cpp.
|
inline |
Gets size of the underlying buffer in bits.
Definition at line 327 of file BitStreamWriter.h.
Gets the write buffer.
Definition at line 541 of file BitStreamWriter.cpp.
|
inline |
Gets whether the writer has assigned a write buffer.
Definition at line 303 of file BitStreamWriter.h.
|
delete |
Copying and moving is disallowed!
|
delete |
Copying and moving is disallowed!
| void zserio::BitStreamWriter::setBitPosition | ( | BitPosType | position | ) |
Sets current bit position. Use with caution!
| position | New bit position. |
Definition at line 521 of file BitStreamWriter.cpp.
|
inline |
Writes bit buffer.
| bitBuffer | Bit buffer to write. |
Definition at line 239 of file BitStreamWriter.h.
Writes bool as a single bit.
| data | Bool to write. |
Definition at line 395 of file BitStreamWriter.cpp.
Writes 16-bit float.
| data | Float16 to write. |
Definition at line 452 of file BitStreamWriter.cpp.
Writes 32-bit float.
| data | Float32 to write. |
Definition at line 458 of file BitStreamWriter.cpp.
Writes 64-bit float.
| data | Float64 to write. |
Definition at line 464 of file BitStreamWriter.cpp.
Writes signed bits up to 32 bits.
| data | Data to write. |
| numBits | Number of bits to write. |
Definition at line 371 of file BitStreamWriter.cpp.
Writes signed bits up to 64 bits.
| data | Data to write. |
| numBits | Number of bits to write. |
Definition at line 383 of file BitStreamWriter.cpp.
| void zserio::BitStreamWriter::writeString | ( | std::string_view | data | ) |
Writes UTF-8 string.
| data | String view to write. |
Definition at line 495 of file BitStreamWriter.cpp.
Writes unsigned bits up to 32 bits.
| data | Data to write. |
| numBits | Number of bits to write. |
Definition at line 349 of file BitStreamWriter.cpp.
Writes unsigned bits up to 64 bits.
| data | Data to write. |
| numBits | Number of bits to write. |
Definition at line 360 of file BitStreamWriter.cpp.
Writes signed variable integer up to 72 bits.
| data | Varuint64 to write. |
Definition at line 415 of file BitStreamWriter.cpp.
Writes signed variable integer up to 16 bits.
| data | Varint16 to write. |
Definition at line 400 of file BitStreamWriter.cpp.
Writes signed variable integer up to 32 bits.
| data | Varint32 to write. |
Definition at line 405 of file BitStreamWriter.cpp.
Writes signed variable integer up to 64 bits.
| data | Varint64 to write. |
Definition at line 410 of file BitStreamWriter.cpp.
Writes variable size integer up to 40 bits.
| data | Varsize to write. |
Definition at line 447 of file BitStreamWriter.cpp.
Writes signed variable integer up to 72 bits.
| data | Varuint64 to write. |
Definition at line 442 of file BitStreamWriter.cpp.
Writes unsigned variable integer up to 16 bits.
| data | Varuint16 to write. |
Definition at line 427 of file BitStreamWriter.cpp.
Writes unsigned variable integer up to 32 bits.
| data | Varuint32 to write. |
Definition at line 432 of file BitStreamWriter.cpp.
Writes unsigned variable integer up to 64 bits.
| data | Varuint64 to write. |
Definition at line 437 of file BitStreamWriter.cpp.