20 #ifndef RIPPLE_PROTOCOL_STBLOB_H_INCLUDED
21 #define RIPPLE_PROTOCOL_STBLOB_H_INCLUDED
23 #include <ripple/basics/Buffer.h>
24 #include <ripple/basics/CountedObject.h>
25 #include <ripple/basics/Slice.h>
26 #include <ripple/protocol/STBase.h>
75 value() const noexcept;
78 operator=(
Buffer&& buffer);
85 copy(
std::
size_t n,
void* buf) const override;
87 move(
std::
size_t n,
void* buf) override;
89 friend class detail::STVar;
139 value_ = std::move(buffer);
std::size_t size() const noexcept
Returns the number of bytes in the storage.
Tracks the number of instances of an object.
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