Zserio C++ runtime library
1.2.0
Built for Zserio 2.16.0
|
#include <ArrayTraits.h>
Public Types | |
using | ElementType = T |
using | OwnerType = typename ELEMENT_BIT_SIZE::OwnerType |
Static Public Member Functions | |
static size_t | bitSizeOf (const OwnerType &owner) |
static size_t | bitSizeOf (const OwnerType &owner, ElementType) |
static size_t | bitSizeOf (const OwnerType &owner, size_t, ElementType) |
static size_t | initializeOffsets (const OwnerType &owner, size_t bitPosition, ElementType) |
static ElementType | read (const OwnerType &owner, BitStreamReader &in, size_t=0) |
static void | write (const OwnerType &owner, 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>).
Specialization for dynamic bit fields which length depends on an arbitrary expression - i.e. which may need an owner.
Definition at line 298 of file ArrayTraits.h.
using zserio::DynamicBitFieldArrayTraits< T, ELEMENT_BIT_SIZE, typename std::enable_if< has_owner_type< ELEMENT_BIT_SIZE >::value >::type >::ElementType = T |
Element type.
Definition at line 303 of file ArrayTraits.h.
using zserio::DynamicBitFieldArrayTraits< T, ELEMENT_BIT_SIZE, typename std::enable_if< has_owner_type< ELEMENT_BIT_SIZE >::value >::type >::OwnerType = typename ELEMENT_BIT_SIZE::OwnerType |
Typedef for the array's owner type.
Definition at line 306 of file ArrayTraits.h.
|
inlinestatic |
Calculates bit size of the array element.
owner | Owner of the current array. |
Definition at line 315 of file ArrayTraits.h.
|
inlinestatic |
Calculates bit size of the array element.
owner | Owner of the current array. |
Definition at line 327 of file ArrayTraits.h.
|
inlinestatic |
Calculates bit size of the array element.
owner | Owner of the current array. |
Definition at line 339 of file ArrayTraits.h.
|
inlinestatic |
Initializes indexed offsets of the single array element.
owner | Owner of the current array. |
bitPosition | Current bit position. |
Definition at line 352 of file ArrayTraits.h.
|
inlinestatic |
Reads the single array element.
owner | Owner of the current array. |
in | Bit stream reader. |
Definition at line 365 of file ArrayTraits.h.
|
inlinestatic |
Writes the single array element.
owner | Owner of the current array. |
out | Bit stream writer to use. |
element | Element to write. |
Definition at line 377 of file ArrayTraits.h.
|
staticconstexpr |
Determines whether the bit size of the single element is constant.
Definition at line 383 of file ArrayTraits.h.