20 #include <ripple/protocol/STAccount.h>
46 Throw<std::runtime_error>(
"Invalid STAccount size");
58 :
STBase(n), value_(v), default_(false)
71 return emplace(n, buf, std::move(*
this));
96 auto const*
const tPtr =
dynamic_cast<STAccount const*
>(&t);
97 return tPtr && (
default_ == tPtr->default_) && (
value_ == tPtr->value_);
SerializedTypeID getSType() const override
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
Like std::vector<char> but better.
bool isDefault() const override
bool isEquivalent(const STBase &t) const override
static constexpr std::size_t bytes
static STBase * emplace(std::size_t n, void *buf, T &&val)
void add(Serializer &s) const override
AccountID value() const noexcept
SField const & getFName() const
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::string getText() const override
A type which can be exported to a well known binary format.
int addVL(Blob const &vector)
STBase * copy(std::size_t n, void *buf) const override
STBase * move(std::size_t n, void *buf) override