20 #ifndef RIPPLE_PROTOCOL_STBLOB_H_INCLUDED
21 #define RIPPLE_PROTOCOL_STBLOB_H_INCLUDED
23 #include <ripple/basics/Buffer.h>
24 #include <ripple/basics/Slice.h>
25 #include <ripple/protocol/STBase.h>
67 return emplace(n, buf, std::move(*
this));
116 value_ = std::move(buffer);
std::size_t size() const noexcept
Returns the number of bytes in the storage.
std::uint8_t const * data() const
STBlob & operator=(Buffer &&buffer)
const SField sfGeneric(access, 0)
An immutable linear range of bytes.
STBase * move(std::size_t n, void *buf) override
std::uint8_t const * data() const noexcept
Return a pointer to beginning of the storage.
bool empty() const noexcept
Like std::vector<char> but better.
void setValue(Buffer &&b)
const SerializedTypeID fieldType
static STBase * emplace(std::size_t n, void *buf, T &&val)
STBlob & operator=(Slice const &slice)
std::string getText() const override
value_type value() const noexcept
SerializedTypeID getSType() const override
void add(Serializer &s) const override
STBlob(STBlob const &rhs)
std::size_t size() const noexcept
Returns the number of bytes in the buffer.
std::uint8_t const * data() const noexcept
Return a pointer to beginning of the storage.
bool isDefault() const override
STBase * copy(std::size_t n, void *buf) const override
STBlob(SField const &f, Buffer &&b)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
A type which can be exported to a well known binary format.
bool isEquivalent(const STBase &t) const override
int addVL(Blob const &vector)
STBlob(SField const &f, void const *data, std::size_t size)