CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace catapult {
namespace cache {
29 template<
typename TSerializerTraits>
33 io::Write16(output, TSerializerTraits::State_Version);
39 if (TSerializerTraits::State_Version != version)
void Write16(TIo &output, uint16_t value)
Writes value into output.
Definition: PodIoUtils.h:48
static void ReadAndCheck(io::InputStream &input)
Reads state version from input and verifies it.
Definition: StateVersion.h:37
#define CATAPULT_THROW_RUNTIME_ERROR_1(MESSAGE, PARAM1)
Macro used to throw a catapult runtime error with a single parameter.
Definition: exceptions.h:171
static void Write(io::OutputStream &output)
Writes state version to output.
Definition: StateVersion.h:32
auto Read16(TIo &input)
Reads value from input.
Definition: PodIoUtils.h:82
State version serialization helpers.
Definition: StateVersion.h:30
Definition: AddressExtractionExtension.cpp:28
Writer interface.
Definition: Stream.h:41