xrpld
Loading...
Searching...
No Matches
DecodedBlob.h
1#pragma once
2
3#include <xrpl/nodestore/NodeObject.h>
4
5namespace xrpl::NodeStore {
6
18{
19public:
21 DecodedBlob(void const* key, void const* value, int valueBytes);
22
24 [[nodiscard]] bool
25 wasOk() const noexcept
26 {
27 return success_;
28 }
29
33
34private:
36
37 void const* key_;
39 unsigned char const* objectData_;
41};
42
43} // namespace xrpl::NodeStore
std::shared_ptr< NodeObject > createObject()
Create a NodeObject from this data.
DecodedBlob(void const *key, void const *value, int valueBytes)
Construct the decoded blob from raw data.
unsigned char const * objectData_
Definition DecodedBlob.h:39
bool wasOk() const noexcept
Determine if the decoding was successful.
Definition DecodedBlob.h:25
NodeObjectType
The types of node objects.
Definition NodeObject.h:12