Zserio C++ runtime library
1.1.0
Built for Zserio 2.15.0
|
#include <ArrayTraits.h>
Public Types | |
using | ElementType = T |
Static Public Member Functions | |
static size_t | bitSizeOf () |
static size_t | bitSizeOf (ElementType) |
static size_t | bitSizeOf (size_t, ElementType) |
static size_t | initializeOffsets (size_t bitPosition, ElementType) |
static ElementType | read (BitStreamReader &in, size_t=0) |
static void | write (BitStreamWriter &out, ElementType element) |
Static Public Attributes | |
static constexpr bool | IS_BITSIZEOF_CONSTANT = true |
Array traits for dynamic bit field Zserio types with dynamic bit size (int<bitSize> or bit<bitSize>).
Used for dynamic bit fields with length known at compile time - i.e. which depends on a constant expression and doesn't need an owner.
Definition at line 216 of file ArrayTraits.h.
using zserio::DynamicBitFieldArrayTraits< T, ELEMENT_BIT_SIZE, typename >::ElementType = T |
Element type.
Definition at line 220 of file ArrayTraits.h.
|
inlinestatic |
Calculates bit size of the array element.
Definition at line 227 of file ArrayTraits.h.
|
inlinestatic |
Calculates bit size of the array element.
Definition at line 237 of file ArrayTraits.h.
|
inlinestatic |
Calculates bit size of the array element.
Definition at line 247 of file ArrayTraits.h.
|
inlinestatic |
Initializes indexed offsets of the single array element.
bitPosition | Current bit position. |
Definition at line 259 of file ArrayTraits.h.
|
inlinestatic |
Reads the single array element.
in | Bit stream reader. |
Definition at line 271 of file ArrayTraits.h.
|
inlinestatic |
Writes the single array element.
out | Bit stream writer to use. |
element | Element to write. |
Definition at line 282 of file ArrayTraits.h.
|
staticconstexpr |
Determines whether the bit size of the single element is constant.
Definition at line 288 of file ArrayTraits.h.