#include "ros/header.h"
#include "console_bridge/console.h"
#include <sstream>
#include <boost/utility/string_ref.hpp>
#include <cstring>
#include <cerrno>
Go to the source code of this file.
|
#define | CONSOLE_BRIDGE_logError(fmt, ...) console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_ERROR, fmt, ##__VA_ARGS__) |
|
#define | SROS_DESERIALIZE_BUFFER(ptr, data, data_size) { if (data_size > 0) { memcpy(data, ptr, data_size); ptr += data_size; } } |
|
#define | SROS_DESERIALIZE_PRIMITIVE(ptr, data) { memcpy(&data, ptr, sizeof(data)); ptr += sizeof(data); } |
|
#define | SROS_SERIALIZE_BUFFER(ptr, data, data_size) { if (data_size > 0) { memcpy(ptr, data, data_size); ptr += data_size; } } |
|
#define | SROS_SERIALIZE_PRIMITIVE(ptr, data) { memcpy(ptr, &data, sizeof(data)); ptr += sizeof(data); } |
|
◆ CONSOLE_BRIDGE_logError
#define CONSOLE_BRIDGE_logError |
( |
|
fmt, |
|
|
|
... |
|
) |
| console_bridge::log(__FILE__, __LINE__, console_bridge::CONSOLE_BRIDGE_LOG_ERROR, fmt, ##__VA_ARGS__) |
◆ SROS_DESERIALIZE_BUFFER
#define SROS_DESERIALIZE_BUFFER |
( |
|
ptr, |
|
|
|
data, |
|
|
|
data_size |
|
) |
| { if (data_size > 0) { memcpy(data, ptr, data_size); ptr += data_size; } } |
◆ SROS_DESERIALIZE_PRIMITIVE
#define SROS_DESERIALIZE_PRIMITIVE |
( |
|
ptr, |
|
|
|
data |
|
) |
| { memcpy(&data, ptr, sizeof(data)); ptr += sizeof(data); } |
◆ SROS_SERIALIZE_BUFFER
#define SROS_SERIALIZE_BUFFER |
( |
|
ptr, |
|
|
|
data, |
|
|
|
data_size |
|
) |
| { if (data_size > 0) { memcpy(ptr, data, data_size); ptr += data_size; } } |
◆ SROS_SERIALIZE_PRIMITIVE
#define SROS_SERIALIZE_PRIMITIVE |
( |
|
ptr, |
|
|
|
data |
|
) |
| { memcpy(ptr, &data, sizeof(data)); ptr += sizeof(data); } |