18 #ifndef _ROS_rosserial_msgs_Log_h 19 #define _ROS_rosserial_msgs_Log_h 46 virtual int serialize(
unsigned char *outbuffer)
const 49 *(outbuffer + offset + 0) = (this->level >> (8 * 0)) & 0xFF;
50 offset +=
sizeof(this->
level);
51 uint32_t length_msg = strlen(this->msg);
52 memcpy(outbuffer + offset, &length_msg,
sizeof(uint32_t));
54 memcpy(outbuffer + offset, this->msg, length_msg);
62 this->level = ((uint8_t) (*(inbuffer + offset)));
63 offset +=
sizeof(this->
level);
65 memcpy(&length_msg, (inbuffer + offset),
sizeof(uint32_t));
67 for(
unsigned int k= offset; k< offset+length_msg; ++k){
68 inbuffer[k-1]=inbuffer[k];
70 inbuffer[offset+length_msg-1]=0;
71 this->msg = (
char *)(inbuffer + offset-1);
76 const char *
getType(){
return "rosserial_msgs/Log"; };
77 const char *
getMD5(){
return "11abd731c25933261cd6183bd12d6295"; };
virtual int deserialize(unsigned char *inbuffer)
virtual int serialize(unsigned char *outbuffer) const