CatapultServer  v0.5.0.1 (Elephant)
catapult::model::TrailingVariableDataLayout< TDerived, TVariableDataType > Struct Template Reference

Public Attributes

uint32_t Size
 Data size. More...
 

Static Protected Member Functions

template<typename T >
static auto PayloadStart (T &derived)
 Gets the start of the variable data part of derived. More...
 
static const TVariableDataType * ToTypedPointer (const uint8_t *pData)
 Gets a typed pointer to the variable data pData. More...
 
static TVariableDataType * ToTypedPointer (uint8_t *pData)
 Gets a typed pointer to the variable data pData. More...
 

Static Private Member Functions

static const uint8_t * ToBytePointer (const TDerived &derived)
 
static uint8_t * ToBytePointer (TDerived &derived)
 

Detailed Description

template<typename TDerived, typename TVariableDataType>
struct catapult::model::TrailingVariableDataLayout< TDerived, TVariableDataType >

Defines a layout for a fixed header followed by variable data.

Note
Do not derive from SizePrefixedEntity in order to allow copying.

Member Function Documentation

◆ PayloadStart()

template<typename TDerived, typename TVariableDataType>
template<typename T >
static auto catapult::model::TrailingVariableDataLayout< TDerived, TVariableDataType >::PayloadStart ( T &  derived)
inlinestaticprotected

Gets the start of the variable data part of derived.

◆ ToBytePointer() [1/2]

template<typename TDerived, typename TVariableDataType>
static const uint8_t* catapult::model::TrailingVariableDataLayout< TDerived, TVariableDataType >::ToBytePointer ( const TDerived &  derived)
inlinestaticprivate
Here is the caller graph for this function:

◆ ToBytePointer() [2/2]

template<typename TDerived, typename TVariableDataType>
static uint8_t* catapult::model::TrailingVariableDataLayout< TDerived, TVariableDataType >::ToBytePointer ( TDerived &  derived)
inlinestaticprivate

◆ ToTypedPointer() [1/2]

template<typename TDerived, typename TVariableDataType>
static const TVariableDataType* catapult::model::TrailingVariableDataLayout< TDerived, TVariableDataType >::ToTypedPointer ( const uint8_t *  pData)
inlinestaticprotected

Gets a typed pointer to the variable data pData.

◆ ToTypedPointer() [2/2]

template<typename TDerived, typename TVariableDataType>
static TVariableDataType* catapult::model::TrailingVariableDataLayout< TDerived, TVariableDataType >::ToTypedPointer ( uint8_t *  pData)
inlinestaticprotected

Gets a typed pointer to the variable data pData.

Member Data Documentation

◆ Size

template<typename TDerived, typename TVariableDataType>
uint32_t catapult::model::TrailingVariableDataLayout< TDerived, TVariableDataType >::Size

Data size.


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