1 #ifndef _ROS_rosserial_msgs_Log_h
2 #define _ROS_rosserial_msgs_Log_h
9 namespace rosserial_msgs
29 virtual int serialize(
unsigned char *outbuffer)
const
32 *(outbuffer + offset + 0) = (this->
level >> (8 * 0)) & 0xFF;
33 offset +=
sizeof(this->
level);
34 uint32_t length_msg = strlen(this->
msg);
35 memcpy(outbuffer + offset, &length_msg,
sizeof(uint32_t));
37 memcpy(outbuffer + offset, this->
msg, length_msg);
45 this->
level = ((uint8_t) (*(inbuffer + offset)));
46 offset +=
sizeof(this->
level);
48 memcpy(&length_msg, (inbuffer + offset),
sizeof(uint32_t));
50 for(
unsigned int k= offset; k< offset+length_msg; ++k){
51 inbuffer[k-1]=inbuffer[k];
53 inbuffer[offset+length_msg-1]=0;
54 this->
msg = (
char *)(inbuffer + offset-1);
59 const char *
getType(){
return "rosserial_msgs/Log"; };
60 const char *
getMD5(){
return "11abd731c25933261cd6183bd12d6295"; };
Log()
Definition: Log.h:23
uint8_t level
Definition: Log.h:15
const char * getType()
Definition: Log.h:59
virtual int deserialize(unsigned char *inbuffer)
Definition: Log.h:42
const char * getMD5()
Definition: Log.h:60
virtual int serialize(unsigned char *outbuffer) const
Definition: Log.h:29
const char * msg
Definition: Log.h:16