46 :
buffer_(std::exchange(other.buffer_,
nullptr)) {}
63 std::swap(
buffer_, other.buffer_);
impl::SharableBinaryHeader * buffer_
Buffer.
SerializedMessage & operator=(const SerializedMessage &other) noexcept
Copy assignment operator.
const char * data() const noexcept
Get the pointer to the data.
SerializedMessage(const char *data, std::size_t size)
Constructor.
std::size_t size() const noexcept
Get the size of the data.
~SerializedMessage() noexcept
Destructor.
Namespace of internal implementations.
void decrease_reference_count_of_sharable_binary(SharableBinaryHeader *buffer) noexcept
Decrease a reference count of a buffer of sharable binary data, and deallocate the buffer if possible...
char * binary_buffer_of(SharableBinaryHeader *buffer) noexcept
Get buffer of binary data from a buffer of sharable binary data.
void add_reference_count_of_sharable_binary(SharableBinaryHeader *buffer) noexcept
Add a reference count of a buffer of sharable binary data.
void enable_reference_count_of_sharable_binary(SharableBinaryHeader *buffer) noexcept
Enable reference count of a buffer of sharable binary data.
Definition of SerializedMessage class.