69 void read(std::vector<uint8_t>& d)
This class is a bulk sequence of bytes with MultiThread (MT)-safe read and write operations.
virtual ~MT_buffer()
Destructor.
void appendData(const std::vector< uint8_t > &d)
Append new data to the stream.
size_t size()
Return the number of available bytes at this moment.
void readAndClear(std::vector< uint8_t > &d)
Read the whole buffer and empty it.
std::vector< uint8_t > m_data
void read(std::vector< uint8_t > &d)
Read the whole buffer.
MT_buffer()
Default constructor.
void clear()
Empty the buffer.