Zserio C++ runtime library  1.0.2
Built for Zserio 2.14.1
zserio::Float64ArrayTraits Struct Reference

#include <ArrayTraits.h>

Public Types

using ElementType = double
 

Static Public Member Functions

static size_t bitSizeOf ()
 
static size_t bitSizeOf (size_t, ElementType)
 
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 = true
 

Detailed Description

Array traits for Zserio float64 type.

Definition at line 1274 of file ArrayTraits.h.

Member Typedef Documentation

◆ ElementType

Element type.

Definition at line 1277 of file ArrayTraits.h.

Member Function Documentation

◆ bitSizeOf() [1/2]

static size_t zserio::Float64ArrayTraits::bitSizeOf ( )
inlinestatic

Calculates bit size of the array element.

Returns
Bit size of the array element.

Definition at line 1284 of file ArrayTraits.h.

◆ bitSizeOf() [2/2]

static size_t zserio::Float64ArrayTraits::bitSizeOf ( size_t  ,
ElementType   
)
inlinestatic

Calculates bit size of the array element.

Returns
Bit size of the array element.

Definition at line 1294 of file ArrayTraits.h.

◆ initializeOffsets()

static size_t zserio::Float64ArrayTraits::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 1307 of file ArrayTraits.h.

◆ read()

static ElementType zserio::Float64ArrayTraits::read ( BitStreamReader in,
size_t  = 0 
)
inlinestatic

Reads the single array element.

Parameters
inBit stream reader.
Returns
Read element.

Definition at line 1319 of file ArrayTraits.h.

◆ write()

static void zserio::Float64ArrayTraits::write ( BitStreamWriter out,
ElementType  element 
)
inlinestatic

Writes the single array element.

Parameters
outBit stream writer to use.
elementElement to write.

Definition at line 1330 of file ArrayTraits.h.

Member Data Documentation

◆ IS_BITSIZEOF_CONSTANT

constexpr bool zserio::Float64ArrayTraits::IS_BITSIZEOF_CONSTANT = true
staticconstexpr

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

Definition at line 1336 of file ArrayTraits.h.


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