1 #ifndef _ROS_SERVICE_DemuxDelete_h
2 #define _ROS_SERVICE_DemuxDelete_h
23 virtual int serialize(
unsigned char *outbuffer)
const
26 uint32_t length_topic = strlen(this->
topic);
27 memcpy(outbuffer + offset, &length_topic,
sizeof(uint32_t));
29 memcpy(outbuffer + offset, this->
topic, length_topic);
30 offset += length_topic;
37 uint32_t length_topic;
38 memcpy(&length_topic, (inbuffer + offset),
sizeof(uint32_t));
40 for(
unsigned int k= offset; k< offset+length_topic; ++k){
41 inbuffer[k-1]=inbuffer[k];
43 inbuffer[offset+length_topic-1]=0;
44 this->
topic = (
char *)(inbuffer + offset-1);
45 offset += length_topic;
50 const char *
getMD5(){
return "d8f94bae31b356b24d0427f80426d0c3"; };
62 virtual int serialize(
unsigned char *outbuffer)
const
75 const char *
getMD5(){
return "d41d8cd98f00b204e9800998ecf8427e"; };