CatapultServer  v0.5.0.1 (Elephant)
catapult::model::CacheEntryInfo< TIdentifier > Struct Template Reference

Cache entry info. More...

Inheritance diagram for catapult::model::CacheEntryInfo< TIdentifier >:
Collaboration diagram for catapult::model::CacheEntryInfo< TIdentifier >:

Public Member Functions

const uint8_t * DataPtr () const
 Returns a const pointer to the first data byte in this cache entry info. More...
 
uint8_t * DataPtr ()
 Returns a pointer to the first data byte in this cache entry info. More...
 
bool HasData () const
 Returns true if data is available. More...
 
bool IsTooLarge () const
 Returns true if the serialized cache entry is too large. More...
 

Static Public Member Functions

static constexpr uint64_t CalculateRealSize (const CacheEntryInfo &cacheEntryInfo) noexcept
 Calculates the real size of cacheEntryInfo. More...
 

Public Attributes

TIdentifier Id
 Cache entry's id. More...
 
uint32_t DataSize
 Size of the entry data. More...
 
- Public Attributes inherited from catapult::model::TrailingVariableDataLayout< CacheEntryInfo< TIdentifier >, uint8_t >
uint32_t Size
 Data size. More...
 

Static Public Attributes

static constexpr uint32_t Max_Data_Size = 0x00FFFFFF
 

Private Types

using BaseType = TrailingVariableDataLayout< CacheEntryInfo< TIdentifier >, uint8_t >
 

Additional Inherited Members

- Static Protected Member Functions inherited from catapult::model::TrailingVariableDataLayout< CacheEntryInfo< TIdentifier >, uint8_t >
static auto PayloadStart (T &derived)
 Gets the start of the variable data part of derived. More...
 
static const uint8_t * ToTypedPointer (const uint8_t *pData)
 Gets a typed pointer to the variable data pData. More...
 
static uint8_t * ToTypedPointer (uint8_t *pData)
 Gets a typed pointer to the variable data pData. More...
 

Detailed Description

template<typename TIdentifier>
struct catapult::model::CacheEntryInfo< TIdentifier >

Cache entry info.

Member Typedef Documentation

◆ BaseType

template<typename TIdentifier >
using catapult::model::CacheEntryInfo< TIdentifier >::BaseType = TrailingVariableDataLayout<CacheEntryInfo<TIdentifier>, uint8_t>
private

Member Function Documentation

◆ CalculateRealSize()

template<typename TIdentifier >
static constexpr uint64_t catapult::model::CacheEntryInfo< TIdentifier >::CalculateRealSize ( const CacheEntryInfo< TIdentifier > &  cacheEntryInfo)
inlinestaticconstexprnoexcept

Calculates the real size of cacheEntryInfo.

◆ DataPtr() [1/2]

template<typename TIdentifier >
uint8_t* catapult::model::CacheEntryInfo< TIdentifier >::DataPtr ( )
inline

Returns a pointer to the first data byte in this cache entry info.

Here is the call graph for this function:

◆ DataPtr() [2/2]

template<typename TIdentifier >
const uint8_t* catapult::model::CacheEntryInfo< TIdentifier >::DataPtr ( ) const
inline

Returns a const pointer to the first data byte in this cache entry info.

Here is the call graph for this function:

◆ HasData()

template<typename TIdentifier >
bool catapult::model::CacheEntryInfo< TIdentifier >::HasData ( ) const
inline

Returns true if data is available.

◆ IsTooLarge()

template<typename TIdentifier >
bool catapult::model::CacheEntryInfo< TIdentifier >::IsTooLarge ( ) const
inline

Returns true if the serialized cache entry is too large.

Member Data Documentation

◆ DataSize

template<typename TIdentifier >
uint32_t catapult::model::CacheEntryInfo< TIdentifier >::DataSize

Size of the entry data.

◆ Id

template<typename TIdentifier >
TIdentifier catapult::model::CacheEntryInfo< TIdentifier >::Id

Cache entry's id.

◆ Max_Data_Size

template<typename TIdentifier >
constexpr uint32_t catapult::model::CacheEntryInfo< TIdentifier >::Max_Data_Size = 0x00FFFFFF
staticconstexpr

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