rippled
Loading...
Searching...
No Matches
DecodedBlob.h
1#pragma once
2
3#include <xrpl/nodestore/NodeObject.h>
4
5namespace xrpl {
6namespace NodeStore {
7
19{
20public:
22 DecodedBlob(void const* key, void const* value, int valueBytes);
23
25 bool
26 wasOk() const noexcept
27 {
28 return m_success;
29 }
30
34
35private:
37
38 void const* m_key;
40 unsigned char const* m_objectData;
42};
43
44} // namespace NodeStore
45} // namespace xrpl
Parsed key/value blob into NodeObject components.
Definition DecodedBlob.h:19
std::shared_ptr< NodeObject > createObject()
Create a NodeObject from this data.
unsigned char const * m_objectData
Definition DecodedBlob.h:40
bool wasOk() const noexcept
Determine if the decoding was successful.
Definition DecodedBlob.h:26
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
NodeObjectType
The types of node objects.
Definition NodeObject.h:12