20 _wrote_first_datagram(false),
21 _read_first_datagram(false) {
29 _data(std::move(data)),
31 _wrote_first_datagram(false),
32 _read_first_datagram(false) {
42 _wrote_first_datagram =
false;
43 _read_first_datagram =
false;
49 INLINE
const vector_uchar &DatagramBuffer::
59 _data = std::move(data);
set_data
Replaces the data in the internal buffer.
void clear()
Clears the internal buffer.
DatagramBuffer()
Initializes an empty datagram buffer.
void swap_data(vector_uchar &other)
Swaps the data in the internal buffer with that of the other buffer.