20#ifndef RIPPLE_PROTOCOL_STBLOB_H_INCLUDED
21#define RIPPLE_PROTOCOL_STBLOB_H_INCLUDED
23#include <xrpl/basics/Buffer.h>
24#include <xrpl/basics/CountedObject.h>
25#include <xrpl/basics/Slice.h>
26#include <xrpl/beast/utility/instrumentation.h>
27#include <xrpl/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;
139 value_ = std::move(buffer);
Like std::vector<char> but better.
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.
Tracks the number of instances of an object.
A type which can be exported to a well known binary format.
SerializedTypeID getSType() const override
STBlob & operator=(Slice const &slice)
value_type value() const noexcept
std::uint8_t const * data() const
void setValue(Buffer &&b)
friend class detail::STVar
bool isEquivalent(STBase const &t) const override
STBase * move(std::size_t n, void *buf) override
void add(Serializer &s) const override
STBase * copy(std::size_t n, void *buf) const override
bool isDefault() const override
std::string getText() const override
An immutable linear range of bytes.
std::uint8_t const * data() const noexcept
Return a pointer to beginning of the storage.
std::size_t size() const noexcept
Returns the number of bytes in the storage.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.