38 namespace datastructure {
61 m_buffer = std::make_shared<std::vector<uint8_t>
const>(buffer);
66 m_buffer = std::make_shared<std::vector<uint8_t>
const>(buffer.data(), buffer.data() + length);
boost::array< uint8_t, MAXSIZE > ArrayBuffer
Typedef for an arraybuffer which can be read from the sensor.
std::shared_ptr< std::vector< uint8_t > const > getBuffer() const
Getter to return a copy of the data saved in the PacketBuffer.
size_t getLength() const
Returns length of the current PacketBuffer.
std::shared_ptr< std::vector< uint8_t > const > m_buffer
void setBuffer(const std::vector< uint8_t > &buffer)
Setter for the PacketBuffer.
PacketBuffer()
Constructor of PacketBuffer.