1#include <xrpl/protocol/STBlob.h>
3#include <xrpl/basics/strHex.h>
4#include <xrpl/beast/utility/instrumentation.h>
5#include <xrpl/protocol/SField.h>
6#include <xrpl/protocol/STBase.h>
7#include <xrpl/protocol/Serializer.h>
28 return emplace(n, buf, std::move(*
this));
46 XRPL_ASSERT(
getFName().isBinary(),
"xrpl::STBlob::add : field is binary");
49 "xrpl::STBlob::add : valid field type");
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)
bool isEquivalent(STBase const &t) const override
void add(Serializer &s) const override
SerializedTypeID getSType() const override
STBase * copy(std::size_t n, void *buf) const override
STBase * move(std::size_t n, void *buf) 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)