#include <ArrayTraits.h>
Array traits specialization for Zserio varsize type.
Definition at line 1066 of file ArrayTraits.h.
◆ ElementType
◆ bitSizeOf() [1/2]
static size_t zserio::VarSizeArrayTraits::bitSizeOf |
( |
ElementType |
element | ) |
|
|
inlinestatic |
Calculates bit size of the array element.
- Parameters
-
element | Element to use for calculation. |
- Returns
- Bit size of the array element.
Definition at line 1078 of file ArrayTraits.h.
◆ bitSizeOf() [2/2]
static size_t zserio::VarSizeArrayTraits::bitSizeOf |
( |
size_t |
, |
|
|
ElementType |
element |
|
) |
| |
|
inlinestatic |
Calculates bit size of the array element.
- Parameters
-
element | Element to use for calculation. |
- Returns
- Bit size of the array element.
Definition at line 1090 of file ArrayTraits.h.
◆ initializeOffsets()
static size_t zserio::VarSizeArrayTraits::initializeOffsets |
( |
size_t |
bitPosition, |
|
|
ElementType |
element |
|
) |
| |
|
inlinestatic |
Initializes indexed offsets of the single array element.
- Parameters
-
bitPosition | Current bit position. |
element | Element to use for calculation. |
- Returns
- Updated bit position which points to the first bit after the array element.
Definition at line 1103 of file ArrayTraits.h.
◆ read()
Reads the single array element.
- Parameters
-
- Returns
- Read element.
Definition at line 1115 of file ArrayTraits.h.
◆ write()
Writes the single array element.
- Parameters
-
out | Bit stream writer to use. |
element | Element to write |
Definition at line 1126 of file ArrayTraits.h.
◆ IS_BITSIZEOF_CONSTANT
constexpr bool zserio::VarSizeArrayTraits::IS_BITSIZEOF_CONSTANT = false |
|
staticconstexpr |
Determines whether the bit size of the single element is constant.
Definition at line 1132 of file ArrayTraits.h.
The documentation for this struct was generated from the following file: