CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
27 namespace catapult {
namespace cache {
37 :
public CacheSerializerAdapter<state::RootNamespaceHistoryNonHistoricalSerializer, NamespaceCacheDescriptor>
static std::string SerializeValue(const ValueType &value)
Serializes element to string.
Definition: NamespaceCacheSerializers.cpp:26
A catapult namespace.
Definition: Namespace.h:30
utils::BaseValue< uint64_t, NamespaceId_tag > NamespaceId
Definition: plugins/txes/namespace/src/types.h:28
static constexpr uint16_t State_Version
Serialized state version.
Definition: NamespaceCacheSerializers.h:48
const Path & path() const
Gets the path.
Definition: Namespace.h:63
size_t size() const
Gets the size of the array.
Definition: CheckedArray.h:40
static void ReadAndCheck(io::InputStream &input)
Reads state version from input and verifies it.
Definition: StateVersion.h:37
const std::string & str() const
Returns underlying string.
Definition: StringOutputStream.h:44
static void Write(io::OutputStream &output)
Writes state version to output.
Definition: StateVersion.h:32
Cache serializer adapter.
Definition: CacheSerializerAdapter.h:31
void Write(TIo &output, const utils::BasicBaseValue< TValue, TTag, TBaseValue > &value)
Writes base value into output.
Definition: PodIoUtils.h:30
uint64_t size
Definition: MemoryCounters.cpp:65
void Write64(TIo &output, uint64_t value)
Writes value into output.
Definition: PodIoUtils.h:36
Serializer for namespace cache height grouped elements.
Definition: NamespaceCacheSerializers.h:59
Serializer for identifier group elements.
Definition: IdentifierGroupSerializer.h:30
Serializer for namespace flat map sub cache.
Definition: NamespaceCacheSerializers.h:41
Primary serializer for namespace cache.
Definition: NamespaceCacheSerializers.h:30
static ValueType DeserializeValue(const RawBuffer &buffer)
Deserializes value from buffer.
Definition: NamespaceCacheSerializers.cpp:37
void push_back(T val)
Definition: CheckedArray.h:51
Definition: AddressExtractionExtension.cpp:28
auto Read64(TIo &input)
Reads value from input.
Definition: PodIoUtils.h:66
Definition: NamespaceCacheSerializers.h:36
String output stream.
Definition: StringOutputStream.h:27
BasicRawBuffer< const uint8_t > RawBuffer
A const binary buffer.
Definition: RawBuffer.h:62