1#include <xrpl/basics/base_uint.h>
2#include <xrpl/basics/contract.h>
3#include <xrpl/beast/utility/instrumentation.h>
4#include <xrpl/json/json_value.h>
5#include <xrpl/protocol/SField.h>
6#include <xrpl/protocol/STBase.h>
7#include <xrpl/protocol/STVector256.h>
8#include <xrpl/protocol/Serializer.h>
22 Throw<std::runtime_error>(
23 "Bad serialization for STVector256: " +
43 return emplace(n, buf, std::move(*
this));
62 getFName().isBinary(),
"ripple::STVector256::add : field is binary");
64 getFName().fieldType == STI_VECTOR256,
65 "ripple::STVector256::add : valid field type");
81 for (
auto const& vEntry :
mValue)
Value & append(Value const &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
Json::Value getJson(JsonOptions) const override
STBase * copy(std::size_t n, void *buf) const override
bool isDefault() const override
bool isEquivalent(STBase const &t) 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 &.