1#include <xrpl/basics/strHex.h>
2#include <xrpl/beast/utility/instrumentation.h>
3#include <xrpl/protocol/SField.h>
4#include <xrpl/protocol/STBase.h>
5#include <xrpl/protocol/STBlob.h>
6#include <xrpl/protocol/Serializer.h>
15 :
STBase(name), value_(st.getVLBuffer())
28 return emplace(n, buf, std::move(*
this));
46 XRPL_ASSERT(
getFName().isBinary(),
"ripple::STBlob::add : field is binary");
49 (
getFName().fieldType == STI_ACCOUNT),
50 "ripple::STBlob::add : valid field type");
std::size_t size() const noexcept
Returns the number of bytes in the buffer.
bool empty() const noexcept
std::uint8_t const * data() const noexcept
Return a pointer to beginning of the storage.
A type which can be exported to a well known binary format.
SField const & getFName() const
static STBase * emplace(std::size_t n, void *buf, T &&val)
SerializedTypeID getSType() const override
bool isEquivalent(STBase const &t) const override
STBase * move(std::size_t n, void *buf) override
void add(Serializer &s) const override
STBase * copy(std::size_t n, void *buf) const override
bool isDefault() const override
std::string getText() const override
int addVL(Blob const &vector)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::string strHex(FwdIt begin, FwdIt end)