9 #ifndef mrpt_synch_mt_buffer_H
10 #define mrpt_synch_mt_buffer_H
This class is a bulk sequence of bytes with MultiThread (MT)-safe read and write operations.
MT_buffer()
Default constructor.
void clear()
Empty the buffer.
size_t size()
Return the number of available bytes at this moment.
void appendData(const vector_byte &d)
Append new data to the stream.
void read(vector_byte &d)
Read the whole buffer.
void readAndClear(vector_byte &d)
Read the whole buffer and empty it.
virtual ~MT_buffer()
Destructor.
std::vector< uint8_t > vector_byte
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.