Zserio C++ runtime library
1.1.0
Built for Zserio 2.15.0
|
#include <ArrayTraits.h>
Public Types | |
using | ArrayTraits = ARRAY_TRAITS |
using | ElementType = typename ARRAY_TRAITS::ElementType |
Static Public Member Functions | |
static void | initContext (DeltaContext &deltaContext, ElementType element) |
static size_t | bitSizeOf (DeltaContext &deltaContext, size_t, ElementType element) |
static size_t | initializeOffsets (DeltaContext &deltaContext, size_t bitPosition, ElementType element) |
static ElementType | read (DeltaContext &deltaContext, BitStreamReader &in, size_t=0) |
static void | write (DeltaContext &deltaContext, BitStreamWriter &out, ElementType element) |
Packed array traits.
Packed array traits are used for all packable built-in types. Works with a single DeltaContext.
Definition at line 1819 of file ArrayTraits.h.
using zserio::PackedArrayTraits< ARRAY_TRAITS, typename >::ArrayTraits = ARRAY_TRAITS |
Typedef for array traits.
Definition at line 1823 of file ArrayTraits.h.
using zserio::PackedArrayTraits< ARRAY_TRAITS, typename >::ElementType = typename ARRAY_TRAITS::ElementType |
Element type.
Definition at line 1826 of file ArrayTraits.h.
|
inlinestatic |
Returns length of the array element stored in the bit stream in bits.
Available for traits which do not need the owner.
deltaContext | Delta context. |
element | Current element. |
Definition at line 1851 of file ArrayTraits.h.
|
inlinestatic |
Calls context initialization step for the current element.
Available for traits which do not need the owner.
deltaContext | Delta context. |
element | Current element. |
Definition at line 1836 of file ArrayTraits.h.
|
inlinestatic |
Calls indexed offsets initialization for the current element.
Available for traits which do not need the owner.
deltaContext | Delta context. |
bitPosition | Current bit stream position. |
element | Current element. |
Definition at line 1867 of file ArrayTraits.h.
|
inlinestatic |
Reads an element from the bit stream.
Available for traits which do not need the owner.
deltaContext | Delta context. |
in | Bit stream reader. |
Definition at line 1882 of file ArrayTraits.h.
|
inlinestatic |
Writes the element to the bit stream.
Available for traits which do not need the owner.
deltaContext | Delta context. |
out | Bit stream writer. |
element | Element to write. |
Definition at line 1896 of file ArrayTraits.h.