18 #ifndef _ROS_std_msgs_Time_h 19 #define _ROS_std_msgs_Time_h 40 virtual int serialize(
unsigned char *outbuffer)
const 43 *(outbuffer + offset + 0) = (this->data.sec >> (8 * 0)) & 0xFF;
44 *(outbuffer + offset + 1) = (this->data.sec >> (8 * 1)) & 0xFF;
45 *(outbuffer + offset + 2) = (this->data.sec >> (8 * 2)) & 0xFF;
46 *(outbuffer + offset + 3) = (this->data.sec >> (8 * 3)) & 0xFF;
47 offset +=
sizeof(this->data.sec);
48 *(outbuffer + offset + 0) = (this->data.nsec >> (8 * 0)) & 0xFF;
49 *(outbuffer + offset + 1) = (this->data.nsec >> (8 * 1)) & 0xFF;
50 *(outbuffer + offset + 2) = (this->data.nsec >> (8 * 2)) & 0xFF;
51 *(outbuffer + offset + 3) = (this->data.nsec >> (8 * 3)) & 0xFF;
52 offset +=
sizeof(this->data.nsec);
59 this->data.sec = ((uint32_t) (*(inbuffer + offset)));
60 this->data.sec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
61 this->data.sec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
62 this->data.sec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
63 offset +=
sizeof(this->data.sec);
64 this->data.nsec = ((uint32_t) (*(inbuffer + offset)));
65 this->data.nsec |= ((uint32_t) (*(inbuffer + offset + 1))) << (8 * 1);
66 this->data.nsec |= ((uint32_t) (*(inbuffer + offset + 2))) << (8 * 2);
67 this->data.nsec |= ((uint32_t) (*(inbuffer + offset + 3))) << (8 * 3);
68 offset +=
sizeof(this->data.nsec);
72 const char *
getType(){
return "std_msgs/Time"; };
73 const char *
getMD5(){
return "cd7166c74c552c311fbcc2fe5a7bc289"; };
virtual int deserialize(unsigned char *inbuffer)
virtual int serialize(unsigned char *outbuffer) const