13 #ifndef KOBUKI_UDID_DATA_HPP__ 14 #define KOBUKI_UDID_DATA_HPP__ 20 #include "../packet_handler/payload_base.hpp" 21 #include "../packet_handler/payload_headers.hpp" 46 bool serialise(ecl::PushAndPop<unsigned char> & byteStream)
58 if (byteStream.size() <
length+2)
64 unsigned char header_id, length_packed;
68 if( length_packed !=
length )
return false;
bool deserialise(ecl::PushAndPop< unsigned char > &byteStream)
const unsigned char length
struct kobuki::UniqueDeviceID::Data data
bool serialise(ecl::PushAndPop< unsigned char > &byteStream)
Provides base class for payloads.
payloadBase(const bool is_dynamic_=false, const unsigned char length_=0)
void buildVariable(T &V, ecl::PushAndPop< unsigned char > &buffer)
void buildBytes(const T &V, ecl::PushAndPop< unsigned char > &buffer)