17.2.2.3.1. CDRMessage_t

struct eprosima::fastrtps::rtps::CDRMessage_t

Structure CDRMessage_t, contains a serialized message.

Public Functions

CDRMessage_t(uint32_t size)

Constructor with maximum size

Parameters
  • size: Maximum size

CDRMessage_t(const SerializedPayload_t &payload)

Constructor to wrap a serialized payload

Parameters
  • payload: Payload to wrap

Public Members

octet *buffer

Pointer to the buffer where the data is stored.

uint32_t pos

Read or write position.

uint32_t max_size

Max size of the message.

uint32_t reserved_size

Size allocated on buffer. May be higher than max_size.

uint32_t length

Current length of the message.

Endianness_t msg_endian

Endianness of the message.