CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
27 namespace catapult {
namespace cache {
30 template<
typename TSerializerTraits,
typename TDescriptor = TSerializerTraits>
33 using KeyType =
typename TDescriptor::KeyType;
45 TSerializerTraits::Save(value, output);
53 return TSerializerTraits::Load(input);
uint8_t const model::InflationCalculator & calculator
Definition: HarvestFeeObserver.cpp:65
typename SecretLockInfoCacheDescriptor ::ValueType ValueType
Definition: CacheSerializerAdapter.h:34
static void ReadAndCheck(io::InputStream &input)
Reads state version from input and verifies it.
Definition: StateVersion.h:37
static void Write(io::OutputStream &output)
Writes state version to output.
Definition: StateVersion.h:32
Cache serializer adapter.
Definition: CacheSerializerAdapter.h:31
Stream implementation for calculating the stream size.
Definition: SizeCalculatingOutputStream.h:27
static ValueType DeserializeValue(const RawBuffer &buffer)
Deserializes value from buffer.
Definition: CacheSerializerAdapter.h:50
Definition: AddressExtractionExtension.cpp:28
String output stream.
Definition: StringOutputStream.h:27
static std::string SerializeValue(const ValueType &value)
Serializes value to string.
Definition: CacheSerializerAdapter.h:38
size_t size() const
Gets the number of inflation entries.
Definition: InflationCalculator.cpp:26
typename SecretLockInfoCacheDescriptor ::KeyType KeyType
Definition: CacheSerializerAdapter.h:33
BasicRawBuffer< const uint8_t > RawBuffer
A const binary buffer.
Definition: RawBuffer.h:62