1#include <xrpl/nodestore/detail/DecodedBlob.h>
3#include <xrpl/basics/Blob.h>
4#include <xrpl/basics/base_uint.h>
5#include <xrpl/basics/safe_cast.h>
6#include <xrpl/beast/utility/instrumentation.h>
7#include <xrpl/nodestore/NodeObject.h>
32 auto const*
byte =
static_cast<unsigned char const*
>(value);
38 objectData_ =
static_cast<unsigned char const*
>(value) + 9;
58 XRPL_ASSERT(
success_,
"xrpl::node_store::DecodedBlob::createObject : valid object type");
static BaseUInt fromVoid(void const *data)
static std::shared_ptr< NodeObject > createObject(NodeObjectType type, Blob &&data, uint256 const &hash)
Create an object from fields.
NodeObjectType objectType_
DecodedBlob(void const *key, void const *value, int valueBytes)
Construct the decoded blob from raw data.
unsigned char const * objectData_
std::shared_ptr< NodeObject > createObject()
Create a NodeObject from this data.
constexpr Dest safeCast(Src s) noexcept
std::vector< unsigned char > Blob
Storage for linear binary data.