Go to the documentation of this file.
19 #include <fastcdr/Cdr.h>
21 #include <fastcdr/exceptions/BadParamException.h>
22 using namespace eprosima::fastcdr::exception;
46 m_data = std::move(
x.m_data);
62 m_data = std::move(
x.m_data);
71 return (m_data ==
x.m_data);
81 size_t current_alignment)
83 size_t initial_alignment = current_alignment;
86 current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
88 current_alignment += (100 * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
92 return current_alignment - initial_alignment;
97 size_t current_alignment)
100 size_t initial_alignment = current_alignment;
103 current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
105 if (
data.data().size() > 0)
107 current_alignment += (
data.data().size() * 1) + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
112 return current_alignment - initial_alignment;
116 eprosima::fastcdr::Cdr& scdr)
const
123 eprosima::fastcdr::Cdr& dcdr)
133 const std::vector<uint8_t>& _data)
143 std::vector<uint8_t>&& _data)
145 m_data = std::move(_data);
167 size_t current_alignment)
169 size_t current_align = current_alignment;
173 return current_align;
182 eprosima::fastcdr::Cdr& scdr)
const
const eProsima_user_DllExport std::vector< uint8_t > & data() const
This function returns a constant reference to member data.
eProsima_user_DllExport bool operator==(const blob &x) const
Comparison operator.
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
static eProsima_user_DllExport size_t getKeyMaxCdrSerializedSize(size_t current_alignment=0)
This function returns the maximum serialized size of the Key of an object depending on the buffer ali...
eProsima_user_DllExport blob & operator=(const blob &x)
Copy assignment.
static eProsima_user_DllExport size_t getMaxCdrSerializedSize(size_t current_alignment=0)
This function returns the maximum serialized size of an object depending on the buffer alignment.
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type.
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const
This function serializes the key members of an object using CDR serialization.
std::vector< uint8_t > m_data
eProsima_user_DllExport ~blob()
Default destructor.
This class represents the structure blob defined by the user in the IDL file.
eProsima_user_DllExport bool operator!=(const blob &x) const
Comparison operator.
static eProsima_user_DllExport size_t getCdrSerializedSize(const udds::blob &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
eProsima_user_DllExport blob()
Default constructor.
librealsense2
Author(s): LibRealSense ROS Team
autogenerated on Fri Aug 2 2024 08:30:01