#include <ArrayTraits.h>
Array traits for Zserio float16 type.
Definition at line 1138 of file ArrayTraits.h.
◆ ElementType
◆ bitSizeOf() [1/2]
static size_t zserio::Float16ArrayTraits::bitSizeOf |
( |
| ) |
|
|
inlinestatic |
Calculates bit size of the array element.
- Returns
- Bit size of the array element.
Definition at line 1148 of file ArrayTraits.h.
◆ bitSizeOf() [2/2]
static size_t zserio::Float16ArrayTraits::bitSizeOf |
( |
size_t |
, |
|
|
ElementType |
|
|
) |
| |
|
inlinestatic |
Calculates bit size of the array element.
- Returns
- Bit size of the array element.
Definition at line 1158 of file ArrayTraits.h.
◆ initializeOffsets()
static size_t zserio::Float16ArrayTraits::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 1171 of file ArrayTraits.h.
◆ read()
Reads the single array element.
- Parameters
-
- Returns
- Read element.
Definition at line 1183 of file ArrayTraits.h.
◆ write()
Writes the single array element.
- Parameters
-
out | Bit stream writer to use. |
element | Element to write. |
Definition at line 1194 of file ArrayTraits.h.
◆ IS_BITSIZEOF_CONSTANT
constexpr bool zserio::Float16ArrayTraits::IS_BITSIZEOF_CONSTANT = true |
|
staticconstexpr |
Determines whether the bit size of the single element is constant.
Definition at line 1200 of file ArrayTraits.h.
The documentation for this struct was generated from the following file: