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

Cache serializer adapter. More...

Public Types

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

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...
 

Detailed Description

template<typename TSerializerTraits, typename TDescriptor = TSerializerTraits>
class catapult::cache::CacheSerializerAdapter< TSerializerTraits, TDescriptor >

Cache serializer adapter.

Member Typedef Documentation

◆ KeyType

template<typename TSerializerTraits, typename TDescriptor = TSerializerTraits>
using catapult::cache::CacheSerializerAdapter< TSerializerTraits, TDescriptor >::KeyType = typename TDescriptor::KeyType

◆ ValueType

template<typename TSerializerTraits, typename TDescriptor = TSerializerTraits>
using catapult::cache::CacheSerializerAdapter< TSerializerTraits, TDescriptor >::ValueType = typename TDescriptor::ValueType

Member Function Documentation

◆ DeserializeValue()

template<typename TSerializerTraits, typename TDescriptor = TSerializerTraits>
static ValueType catapult::cache::CacheSerializerAdapter< TSerializerTraits, TDescriptor >::DeserializeValue ( const RawBuffer &  buffer)
inlinestatic

Deserializes value from buffer.

◆ SerializeValue()

template<typename TSerializerTraits, typename TDescriptor = TSerializerTraits>
static std::string catapult::cache::CacheSerializerAdapter< TSerializerTraits, TDescriptor >::SerializeValue ( const ValueType value)
inlinestatic

Serializes value to string.


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