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