ReadBuffer class used to decode Protobuf messages. More...
ReadBuffer class used to decode Protobuf messages.
Definition at line 28 of file ReadBuffer.hpp.
#include <ReadBuffer.hpp>
Inheritance diagram for cogip::canpb::ReadBuffer:
Collaboration diagram for cogip::canpb::ReadBuffer:Public Member Functions | |
| ReadBuffer () | |
| Class constructor. | |
| uint32_t | get_size () const override |
| uint32_t | get_max_size () const override |
| bool | peek (uint8_t &byte) const override |
| bool | advance () override |
| bool | advance (const uint32_t n) override |
| bool | pop (uint8_t &byte) override |
| uint8_t * | get_data_array () |
| Return a pointer to the data array. | |
| uint32_t & | get_bytes_written () |
| Return a non constant reference to the number of bytes written to the data array. | |
| void | clear () |
| Clear all indices, in effect allowing the data to be overwritten. | |
| bool | push (uint8_t &byte) |
| Push new data into the buffer. | |
| size_t | base64_decode () |
| Decode the data buffer from base64 before deserialization. More... | |
| uint8_t * | get_base64_data () |
| Return a pointer to the data array. | |
| size_t cogip::canpb::ReadBuffer::base64_decode | ( | ) |
Decode the data buffer from base64 before deserialization.