|
Zserio C++ runtime library
1.3.0
Built for Zserio 2.18.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 299 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 304 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 307 of file ArrayTraits.h.
|
inlinestatic |
Calculates bit size of the array element.
| owner | Owner of the current array. |
Definition at line 316 of file ArrayTraits.h.
|
inlinestatic |
Calculates bit size of the array element.
| owner | Owner of the current array. |
Definition at line 328 of file ArrayTraits.h.
|
inlinestatic |
Calculates bit size of the array element.
| owner | Owner of the current array. |
Definition at line 340 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 353 of file ArrayTraits.h.
|
inlinestatic |
Reads the single array element.
| owner | Owner of the current array. |
| in | Bit stream reader. |
Definition at line 366 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 378 of file ArrayTraits.h.
|
staticconstexpr |
Determines whether the bit size of the single element is constant.
Definition at line 384 of file ArrayTraits.h.