CatapultServer
v0.5.0.1 (Elephant)
|
Serializer for patricia tree.
Definition: PatriciaTreeSerializer.h:27
utils::ByteArray< Hash256_Size, Hash256_tag > Hash256
Definition: src/catapult/types.h:47
void Write16(TIo &output, uint16_t value)
Writes value into output.
Definition: PodIoUtils.h:48
void Write8(TIo &output, uint8_t value)
Writes value into output.
Definition: PodIoUtils.h:54
static tree::TreeNode DeserializeValue(const RawBuffer &buffer)
Deserializes tree node from buffer.
Definition: PatriciaTreeSerializer.cpp:128
bool isLeaf() const
Returns true if this node represents a leaf node.
Definition: TreeNode.cpp:189
auto Read8(TIo &input)
Reads value from input.
Definition: PodIoUtils.h:90
const BranchTreeNode & asBranchNode() const
Gets a branch node interface to this node.
Definition: TreeNode.cpp:227
#define CATAPULT_THROW_INVALID_ARGUMENT_1(MESSAGE, PARAM1)
Macro used to throw a catapult invalid argument with a single parameter.
Definition: exceptions.h:183
auto Read16(TIo &input)
Reads value from input.
Definition: PodIoUtils.h:82
#define CATAPULT_THROW_RUNTIME_ERROR(MESSAGE)
Macro used to throw a catapult runtime error.
Definition: exceptions.h:167
#define CATAPULT_THROW_INVALID_ARGUMENT(MESSAGE)
Macro used to throw a catapult invalid argument.
Definition: exceptions.h:179
const LeafTreeNode & asLeafNode() const
Gets a leaf node interface to this node.
Definition: TreeNode.cpp:220
Definition: AddressExtractionExtension.cpp:28
constexpr size_t Hash256_Size
Definition: src/catapult/types.h:34
Represents a tree node.
Definition: TreeNode.h:124
static std::string SerializeValue(const tree::TreeNode &value)
Serializes value to string.
Definition: PatriciaTreeSerializer.cpp:119
bool isBranch() const
Returns true if this node represents a branch node.
Definition: TreeNode.cpp:185
BasicRawBuffer< const uint8_t > RawBuffer
A const binary buffer.
Definition: RawBuffer.h:62