Encodes and decodes messages. More...
#include <serialization.h>
Static Public Member Functions | |
static void | read (const uint8_t *data, uint32_t count, typename boost::call_traits< T >::reference message) |
Decode the message payload from the data buffer. More... | |
static uint32_t | serializedLength (typename boost::call_traits< T >::param_type message) |
Get the length of the message payload in bytes. More... | |
static void | write (uint8_t *data, uint32_t size, typename boost::call_traits< T >::param_type message) |
Encode the message payload as a byte array. More... | |
Encodes and decodes messages.
Definition at line 69 of file serialization.h.
|
static |
Decode the message payload from the data buffer.
data | a pointer to the start of the message payload |
count | the number of bytes in the message payload |
message | the output message |
Definition at line 40 of file serialization_ros.h.
|
static |
Get the length of the message payload in bytes.
The payload does not include the header or checksum.
message | the message to get the length of |
Definition at line 47 of file serialization_ros.h.
|
static |
Encode the message payload as a byte array.
data | a buffer to fill with the message payload bytes |
size | the length of the buffer |
message | the output message |
Definition at line 53 of file serialization_ros.h.