Zserio C++ runtime library  1.0.2
Built for Zserio 2.14.1
zserio::VarIntNNArrayTraits< uint32_t > Struct Reference

#include <ArrayTraits.h>

Public Types

using ElementType = uint32_t
 

Static Public Member Functions

static size_t bitSizeOf (ElementType element)
 
static size_t bitSizeOf (size_t, ElementType element)
 
static size_t initializeOffsets (size_t bitPosition, ElementType element)
 
static ElementType read (BitStreamReader &in, size_t=0)
 
static void write (BitStreamWriter &out, ElementType element)
 

Static Public Attributes

static constexpr bool IS_BITSIZEOF_CONSTANT = false
 

Detailed Description

Array traits specialization for Zserio varuint32 type.

Definition at line 769 of file ArrayTraits.h.

Member Typedef Documentation

◆ ElementType

using zserio::VarIntNNArrayTraits< uint32_t >::ElementType = uint32_t

Element type.

Definition at line 772 of file ArrayTraits.h.

Member Function Documentation

◆ bitSizeOf() [1/2]

static size_t zserio::VarIntNNArrayTraits< uint32_t >::bitSizeOf ( ElementType  element)
inlinestatic

Calculates bit size of the array element.

Parameters
elementElement to use for calculation.
Returns
Bit size of the array element.

Definition at line 781 of file ArrayTraits.h.

◆ bitSizeOf() [2/2]

static size_t zserio::VarIntNNArrayTraits< uint32_t >::bitSizeOf ( size_t  ,
ElementType  element 
)
inlinestatic

Calculates bit size of the array element.

Parameters
elementElement to use for calculation.
Returns
Bit size of the array element.

Definition at line 793 of file ArrayTraits.h.

◆ initializeOffsets()

static size_t zserio::VarIntNNArrayTraits< uint32_t >::initializeOffsets ( size_t  bitPosition,
ElementType  element 
)
inlinestatic

Initializes indexed offsets of the single array element.

Parameters
bitPositionCurrent bit position.
elementElement to use for calculation.
Returns
Updated bit position which points to the first bit after the array element.

Definition at line 806 of file ArrayTraits.h.

◆ read()

static ElementType zserio::VarIntNNArrayTraits< uint32_t >::read ( BitStreamReader in,
size_t  = 0 
)
inlinestatic

Reads the single array element.

Parameters
inBit stream reader.
Returns
Read element.

Definition at line 818 of file ArrayTraits.h.

◆ write()

static void zserio::VarIntNNArrayTraits< uint32_t >::write ( BitStreamWriter out,
ElementType  element 
)
inlinestatic

Writes the single array element.

Parameters
outBit stream writer to use.
elementElement to write.

Definition at line 829 of file ArrayTraits.h.

Member Data Documentation

◆ IS_BITSIZEOF_CONSTANT

constexpr bool zserio::VarIntNNArrayTraits< uint32_t >::IS_BITSIZEOF_CONSTANT = false
staticconstexpr

Determines whether the bit size of the single element is constant.

Definition at line 835 of file ArrayTraits.h.


The documentation for this struct was generated from the following file: