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>
73 value() const noexcept;
76 operator=(
Buffer&& buffer);
83 copy(
std::
size_t n,
void* buf) const override;
85 move(
std::
size_t n,
void* buf) override;
87 friend class detail::STVar;
137 value_ = std::move(buffer);
std::size_t size() const noexcept
Returns the number of bytes in the storage.
const SField sfGeneric(access, 0)
An immutable linear range of bytes.
value_type value() const noexcept
std::uint8_t const * data() const noexcept
Return a pointer to beginning of the storage.
Like std::vector<char> but better.
STBlob & operator=(Slice const &slice)
void setValue(Buffer &&b)
std::string getText() const override
SerializedTypeID getSType() const override
void add(Serializer &s) const override
STBase * copy(std::size_t n, void *buf) const override
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 * move(std::size_t n, void *buf) override
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
std::uint8_t const * data() const