60 [[nodiscard]]
const unsigned char*
data() const noexcept {
69 [[nodiscard]] std::size_t
size() const noexcept {
return buffer_.size(); }
Definition of binary class.
std::size_t size() const noexcept
Get the size of the written data.
const binary & as_binary() const
Get the data as msgpack_light::binary instance.
const unsigned char * data() const noexcept
Get the pointer to the written data.
static constexpr std::size_t initial_buffer_size
Size of the initial buffer.
memory_output_stream()
Constructor.
void write(const unsigned char *data, std::size_t size) override
Write data.
output_stream()=default
Constructor.
constexpr std::size_t static_memory_buffer_size
Size of buffers on memory defined using static arrays.
Namespace of this project.
Definition of output_stream class.
Definition of static_memory_buffer_size constant.