75 void write(
const unsigned char* data, std::size_t size) {
84 void put(
unsigned char data) {
write(&data, 1U); }
92 template <
typename... T>
98 write(buffer.data(), buffer.size());
Class of views of mutable buffers with static sizes.
Class to implement internal implementation of serialization_buffer class without buffers.
output_stream & stream_
Stream to write output to.
non_buffered_serialization_buffer_impl(output_stream &stream)
Constructor.
void flush()
Flush the internal buffer in this instance.
void write_in_big_endian(T... values)
Write values in big endian.
~non_buffered_serialization_buffer_impl() noexcept
Destructor.
void write(const unsigned char *data, std::size_t size)
Write data.
void put(unsigned char data)
Write a byte of data.
Interface of streams to write data.
Definition of mutable_static_binary_view class.
Namespace of internal implementations.
void pack_in_big_endian(mutable_static_binary_view< total_size_of< T, Remaining... > > buffer, T value, Remaining... remaining_values) noexcept
Pack some values in big endian.
constexpr std::size_t total_size_of
Get the total size of types in template arguments.
Definition of output_stream class.
Definition of pack_in_big_endian function.
Definition of total_size_of variable.