rippled
Loading...
Searching...
No Matches
DecodedBlob.h
1#ifndef XRPL_NODESTORE_DECODEDBLOB_H_INCLUDED
2#define XRPL_NODESTORE_DECODEDBLOB_H_INCLUDED
3
4#include <xrpl/nodestore/NodeObject.h>
5
6namespace ripple {
7namespace NodeStore {
8
20{
21public:
23 DecodedBlob(void const* key, void const* value, int valueBytes);
24
26 bool
27 wasOk() const noexcept
28 {
29 return m_success;
30 }
31
35
36private:
38
39 void const* m_key;
41 unsigned char const* m_objectData;
43};
44
45} // namespace NodeStore
46} // namespace ripple
47
48#endif
Parsed key/value blob into NodeObject components.
Definition DecodedBlob.h:20
std::shared_ptr< NodeObject > createObject()
Create a NodeObject from this data.
unsigned char const * m_objectData
Definition DecodedBlob.h:41
bool wasOk() const noexcept
Determine if the decoding was successful.
Definition DecodedBlob.h:27
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
NodeObjectType
The types of node objects.
Definition NodeObject.h:13