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. | |
| static uint32_t | serializedLength (typename boost::call_traits< T >::param_type message) |
| Get the length of the message payload in bytes. | |
| 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. | |
Encodes and decodes messages.
Definition at line 69 of file serialization.h.
| void ublox::Serializer< T >::read | ( | const uint8_t * | data, |
| uint32_t | count, | ||
| typename boost::call_traits< T >::reference | message | ||
| ) | [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.
| uint32_t ublox::Serializer< T >::serializedLength | ( | typename boost::call_traits< T >::param_type | message | ) | [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.
| void ublox::Serializer< T >::write | ( | uint8_t * | data, |
| uint32_t | size, | ||
| typename boost::call_traits< T >::param_type | message | ||
| ) | [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.