1#ifndef XRPL_PROTOCOL_STBLOB_H_INCLUDED
2#define XRPL_PROTOCOL_STBLOB_H_INCLUDED
4#include <xrpl/basics/Buffer.h>
5#include <xrpl/basics/CountedObject.h>
6#include <xrpl/basics/Slice.h>
7#include <xrpl/beast/utility/instrumentation.h>
8#include <xrpl/protocol/STBase.h>
55 value() const noexcept;
58 operator=(
Buffer&& buffer);
65 copy(
std::
size_t n,
void* buf) const override;
67 move(
std::
size_t n,
void* buf) override;
119 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.