MT_buffer()
Default constructor.
void clear()
Empty the buffer.
void readAndClear(std::vector< uint8_t > &d)
Read the whole buffer and empty it.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
virtual ~MT_buffer()
Destructor.
size_t size()
Return the number of available bytes at this moment.
void appendData(const std::vector< uint8_t > &d)
Append new data to the stream.
void read(std::vector< uint8_t > &d)
Read the whole buffer.
std::vector< uint8_t > m_data
This class is a bulk sequence of bytes with MultiThread (MT)-safe read and write operations.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |