CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::IdentifierGroupSerializer< TDescriptor > Class Template Reference

Serializer for identifier group elements. More...

Static Public Member Functions

static std::string SerializeValue (const ValueType &value)
 Serializes value to string. More...
 
static ValueType DeserializeValue (const RawBuffer &buffer)
 Deserializes value from buffer. More...
 

Private Types

using KeyType = typename TDescriptor::KeyType
 
using ValueType = typename TDescriptor::ValueType
 

Static Private Member Functions

template<typename T >
static void Read (io::InputStream &input, T &value)
 
template<size_t N, typename TTag >
static void Read (io::InputStream &input, utils::ByteArray< N, TTag > &value)
 
template<typename T >
static void Write (io::OutputStream &input, const T &value)
 
template<size_t N, typename TTag >
static void Write (io::OutputStream &input, const utils::ByteArray< N, TTag > &value)
 
static size_t Size (const ValueType &value)
 

Detailed Description

template<typename TDescriptor>
class catapult::cache::IdentifierGroupSerializer< TDescriptor >

Serializer for identifier group elements.

Member Typedef Documentation

◆ KeyType

template<typename TDescriptor>
using catapult::cache::IdentifierGroupSerializer< TDescriptor >::KeyType = typename TDescriptor::KeyType
private

◆ ValueType

template<typename TDescriptor>
using catapult::cache::IdentifierGroupSerializer< TDescriptor >::ValueType = typename TDescriptor::ValueType
private

Member Function Documentation

◆ DeserializeValue()

template<typename TDescriptor>
static ValueType catapult::cache::IdentifierGroupSerializer< TDescriptor >::DeserializeValue ( const RawBuffer &  buffer)
inlinestatic

Deserializes value from buffer.

◆ Read() [1/2]

template<typename TDescriptor>
template<typename T >
static void catapult::cache::IdentifierGroupSerializer< TDescriptor >::Read ( io::InputStream input,
T &  value 
)
inlinestaticprivate
Here is the caller graph for this function:

◆ Read() [2/2]

template<typename TDescriptor>
template<size_t N, typename TTag >
static void catapult::cache::IdentifierGroupSerializer< TDescriptor >::Read ( io::InputStream input,
utils::ByteArray< N, TTag > &  value 
)
inlinestaticprivate

◆ SerializeValue()

template<typename TDescriptor>
static std::string catapult::cache::IdentifierGroupSerializer< TDescriptor >::SerializeValue ( const ValueType value)
inlinestatic

Serializes value to string.

◆ Size()

template<typename TDescriptor>
static size_t catapult::cache::IdentifierGroupSerializer< TDescriptor >::Size ( const ValueType value)
inlinestaticprivate
Here is the caller graph for this function:

◆ Write() [1/2]

template<typename TDescriptor>
template<typename T >
static void catapult::cache::IdentifierGroupSerializer< TDescriptor >::Write ( io::OutputStream input,
const T &  value 
)
inlinestaticprivate
Here is the caller graph for this function:

◆ Write() [2/2]

template<typename TDescriptor>
template<size_t N, typename TTag >
static void catapult::cache::IdentifierGroupSerializer< TDescriptor >::Write ( io::OutputStream input,
const utils::ByteArray< N, TTag > &  value 
)
inlinestaticprivate

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