Struct SerializedPayload_t
Defined in File SerializedPayload.h
Struct Documentation
-
struct SerializedPayload_t
Structure SerializedPayload_t.
Public Functions
-
inline SerializedPayload_t()
Default constructor.
-
inline ~SerializedPayload_t()
-
inline bool operator==(const SerializedPayload_t &other) const
-
inline bool copy(const SerializedPayload_t *serData, bool with_limit = true)
Copy another structure (including allocating new space for the data.)
- Parameters
serData – [in] Pointer to the structure to copy
with_limit – if true, the function will fail when providing a payload too big
- Returns
True if correct
-
inline bool reserve_fragmented(SerializedPayload_t *serData)
Allocate new space for fragmented data
- Parameters
serData – [in] Pointer to the structure to copy
- Returns
True if correct
-
inline void empty()
Empty the payload.
Public Members
Public Static Attributes
-
static constexpr size_t representation_header_size = 4u
Size in bytes of the representation header as specified in the RTPS 2.3 specification chapter 10.
-
inline SerializedPayload_t()