| 
    rippled
    
   | 
 
Parsed key/value blob into NodeObject components. More...
#include <DecodedBlob.h>
Public Member Functions | |
| DecodedBlob (void const *key, void const *value, int valueBytes) | |
| Construct the decoded blob from raw data.   | |
| bool | wasOk () const noexcept | 
| Determine if the decoding was successful.   | |
| std::shared_ptr< NodeObject > | createObject () | 
| Create a NodeObject from this data.   | |
Private Attributes | |
| bool | m_success | 
| void const * | m_key | 
| NodeObjectType | m_objectType | 
| unsigned char const * | m_objectData | 
| int | m_dataBytes | 
Parsed key/value blob into NodeObject components.
This will extract the information required to construct a NodeObject. It also does consistency checking and returns the result, so it is possible to determine if the data is corrupted without throwing an exception. Not all forms of corruption are detected so further analysis will be needed to eliminate false negatives.
Definition at line 19 of file DecodedBlob.h.
| ripple::NodeStore::DecodedBlob::DecodedBlob | ( | void const * | key, | 
| void const * | value, | ||
| int | valueBytes | ||
| ) | 
Construct the decoded blob from raw data.
Definition at line 10 of file DecodedBlob.cpp.
      
  | 
  noexcept | 
Determine if the decoding was successful.
Definition at line 27 of file DecodedBlob.h.
| std::shared_ptr< NodeObject > ripple::NodeStore::DecodedBlob::createObject | ( | ) | 
Create a NodeObject from this data.
Definition at line 55 of file DecodedBlob.cpp.
      
  | 
  private | 
Definition at line 37 of file DecodedBlob.h.
      
  | 
  private | 
Definition at line 39 of file DecodedBlob.h.
      
  | 
  private | 
Definition at line 40 of file DecodedBlob.h.
      
  | 
  private | 
Definition at line 41 of file DecodedBlob.h.
      
  | 
  private | 
Definition at line 42 of file DecodedBlob.h.