xrpld
Loading...
Searching...
No Matches
DecodedBlob.h
1#pragma once
2
3#include <xrpl/nodestore/NodeObject.h>
4
5#include <memory>
6
7namespace xrpl::node_store {
8
21{
22public:
26 DecodedBlob(void const* key, void const* value, int valueBytes);
27
31 [[nodiscard]] bool
32 wasOk() const noexcept
33 {
34 return success_;
35 }
36
42
43private:
44 bool success_{false};
45
46 void const* key_;
48 unsigned char const* objectData_{nullptr};
50};
51
52} // namespace xrpl::node_store
DecodedBlob(void const *key, void const *value, int valueBytes)
Construct the decoded blob from raw data.
unsigned char const * objectData_
Definition DecodedBlob.h:48
bool wasOk() const noexcept
Determine if the decoding was successful.
Definition DecodedBlob.h:32
std::shared_ptr< NodeObject > createObject()
Create a NodeObject from this data.
NodeObjectType
The types of node objects.
Definition NodeObject.h:18