Zserio C++ runtime library
1.1.0
Built for Zserio 2.15.0
|
#include <ArrayTraits.h>
Public Types | |
using | ElementType = zserio::string< ALLOC< char > > |
using | allocator_type = typename ElementType::allocator_type |
Static Public Member Functions | |
static size_t | bitSizeOf (size_t, const ElementType &element) |
static size_t | initializeOffsets (size_t bitPosition, const ElementType &element) |
template<typename RAW_ARRAY > | |
static void | read (RAW_ARRAY &rawArray, BitStreamReader &in, size_t=0) |
static void | write (BitStreamWriter &out, const ElementType &element) |
Static Public Attributes | |
static constexpr bool | IS_BITSIZEOF_CONSTANT = false |
Array traits for Zserio string type.
Definition at line 1477 of file ArrayTraits.h.
using zserio::BasicStringArrayTraits< ALLOC >::allocator_type = typename ElementType::allocator_type |
Allocator type.
Definition at line 1483 of file ArrayTraits.h.
using zserio::BasicStringArrayTraits< ALLOC >::ElementType = zserio::string<ALLOC<char> > |
Element type.
Definition at line 1480 of file ArrayTraits.h.
|
inlinestatic |
Calculates bit size of the array element.
element | Element to use for calculation. |
Definition at line 1492 of file ArrayTraits.h.
|
inlinestatic |
Initializes indexed offsets of the single array element.
bitPosition | Current bit position. |
element | Element to use for calculation. |
Definition at line 1505 of file ArrayTraits.h.
|
inlinestatic |
Reads the single array element.
rawArray | Raw array to use. |
in | Bit stream reader. |
Definition at line 1517 of file ArrayTraits.h.
|
inlinestatic |
Writes the single array element.
out | Bit stream writer to use. |
element | Element to write. |
Definition at line 1528 of file ArrayTraits.h.
|
staticconstexpr |
Determines whether the bit size of the single element is constant.
Definition at line 1534 of file ArrayTraits.h.