13 #ifndef KOBUKI_GP_INPUT_HPP__ 14 #define KOBUKI_GP_INPUT_HPP__ 21 #include "../packet_handler/payload_base.hpp" 22 #include "../packet_handler/payload_headers.hpp" 50 bool serialise(ecl::PushAndPop<unsigned char> & byteStream)
59 for (
unsigned int i = 0; i < 3; ++i)
68 if (byteStream.size() <
length+2)
74 unsigned char header_id, length_packed;
78 if( length_packed !=
length )
return false;
87 for (
unsigned int i = 0; i < 4; ++i)
91 for (
unsigned int i = 0; i < 3; ++i) {
const unsigned char length
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)