20#include <xrpl/basics/Log.h>
21#include <xrpl/basics/StringUtilities.h>
22#include <xrpl/protocol/STVector256.h>
23#include <xrpl/protocol/jss.h>
32 Throw<std::runtime_error>(
33 "Bad serialization for STVector256: " +
53 return emplace(n, buf, std::move(*
this));
72 getFName().isBinary(),
"ripple::STVector256::add : field is binary");
74 getFName().fieldType == STI_VECTOR256,
75 "ripple::STVector256::add : valid field type");
91 for (
auto const& vEntry :
mValue)
Value & append(const Value &value)
Append value to array at the end.
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)
void add(Serializer &s) const override
SerializedTypeID getSType() const override
bool isEquivalent(const STBase &t) const override
Json::Value getJson(JsonOptions) const override
STBase * copy(std::size_t n, void *buf) const override
bool isDefault() const override
STBase * move(std::size_t n, void *buf) override
std::vector< uint256 > mValue
Slice getSlice(std::size_t bytes)
int addVL(Blob const &vector)
static constexpr std::size_t size()
@ arrayValue
array value (ordered list)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::string to_string(base_uint< Bits, Tag > const &a)
Note, should be treated as flags that can be | and &.