ADTF
LeafLayout

small leaf layout information to access codec data very fast. More...

Public Attributes

uint32_t byte_pos
 byte position of the element for serialized or deserialized More...
 
uint8_t bit_pos = {}
 bit position of the element for serialized only
 
LeafElementType element_type {}
 type of the value. accept all valid leaf types, except user defined types
 
uint8_t bit_size = {}
 type bit size of an element for serialized or deserialized
 
uint8_t data_flags = static_cast<uint8_t>(LeafDataRepresentation::deserialized)
 flags of the described layout
 

Static Public Attributes

static constexpr uint32_t _invalid_pos = static_cast<uint32_t>(-1)
 invalid position for byte_pos
 
static constexpr size_t _max_byte_size = 31
 max type byte size of an element (usually this can not be reached for standard data types)
 
static constexpr size_t _max_bit_size = 255
 max type bit size of an element (usually this can not be reached for standard data types)
 

Detailed Description

small leaf layout information to access codec data very fast.

See also
LeafCodecIndex

Definition at line 85 of file leaf_value_access.h.

Member Data Documentation

◆ byte_pos

uint32_t byte_pos
Initial value:
=
static constexpr uint32_t _invalid_pos
invalid position for byte_pos

byte position of the element for serialized or deserialized

Definition at line 94 of file leaf_value_access.h.

Referenced by ddl::codec::detail::readDeserializedBytes(), ddl::codec::detail::readSerializedBits(), ddl::codec::detail::writeDeserializedBytes(), and ddl::codec::detail::writeSerializedBits().