15 #ifndef KOBUKI_EEPROM_DATA_HPP__ 16 #define KOBUKI_EEPROM_DATA_HPP__ 24 #include "../packet_handler/payload_headers.hpp" 47 bool serialise(ecl::PushAndPop<unsigned char> & byteStream)
52 for (
unsigned int i = 0; i < data.tmp_eeprom.size(); ++i)
61 if (byteStream.size() <
length+2)
67 unsigned char header_id, length_packed;
71 if( length_packed !=
length )
return false;
74 for (
unsigned int i = 0; i < data.tmp_eeprom.size(); ++i)
bool deserialise(ecl::PushAndPop< unsigned char > &byteStream)
const unsigned char length
Provides base class for payloads.
payloadBase(const bool is_dynamic_=false, const unsigned char length_=0)
bool serialise(ecl::PushAndPop< unsigned char > &byteStream)
std::vector< uint8_t > tmp_eeprom
void buildVariable(T &V, ecl::PushAndPop< unsigned char > &buffer)
void buildBytes(const T &V, ecl::PushAndPop< unsigned char > &buffer)