This class offers an interface to serialize/deserialize some basic types using CDR protocol inside an eprosima::fastcdr::FastBuffer. More...
#include <Cdr.h>
Classes | |
class | state |
This class stores the current state of a CDR serialization. More... | |
Public Types | |
enum | CdrType { CORBA_CDR , DDS_CDR } |
This enumeration represents the two kinds of CDR serialization supported by eprosima::fastcdr::CDR. More... | |
enum | DDSCdrPlFlag { DDS_CDR_WITHOUT_PL = 0x0 , DDS_CDR_WITH_PL = 0x2 } |
This enumeration represents the two posible values of the flag that points if the content is a parameter list (only in DDS CDR). More... | |
enum | Endianness { BIG_ENDIANNESS = 0x0 , LITTLE_ENDIANNESS = 0x1 } |
This enumeration represents endianness types. More... | |
Public Member Functions | |
Cdr (FastBuffer &cdrBuffer, const Endianness endianness=DEFAULT_ENDIAN, const CdrType cdrType=CORBA_CDR) | |
This constructor creates an eprosima::fastcdr::Cdr object that can serialize/deserialize the assigned buffer. More... | |
Cdr & | read_encapsulation () |
This function reads the encapsulation of the CDR stream. More... | |
Cdr & | serialize_encapsulation () |
This function writes the encapsulation of the CDR stream. More... | |
DDSCdrPlFlag | getDDSCdrPlFlag () const |
This function returns the parameter list flag when the CDR type is eprosima::fastcdr::DDS_CDR. More... | |
void | setDDSCdrPlFlag (DDSCdrPlFlag plFlag) |
This function sets the parameter list flag when the CDR type is eprosima::fastcdr::DDS_CDR. More... | |
uint16_t | getDDSCdrOptions () const |
This function returns the option flags when the CDR type is eprosima::fastcdr::DDS_CDR. More... | |
void | setDDSCdrOptions (uint16_t options) |
This function sets the option flags when the CDR type is eprosima::fastcdr::DDS_CDR. More... | |
void | changeEndianness (Endianness endianness) |
This function sets the current endianness used by the CDR type. More... | |
Endianness | endianness () const |
This function returns the current endianness used by the CDR type. More... | |
bool | jump (size_t numBytes) |
This function skips a number of bytes in the CDR stream buffer. More... | |
void | reset () |
This function resets the current position in the buffer to the beginning. More... | |
char * | getBufferPointer () |
This function returns the pointer to the current used buffer. More... | |
char * | getCurrentPosition () |
This function returns the current position in the CDR stream. More... | |
size_t | getSerializedDataLength () const |
This function returns the length of the serialized data inside the stream. More... | |
state | getState () |
This function returns the current state of the CDR serialization process. More... | |
void | setState (state &state) |
This function sets a previous state of the CDR serialization process;. More... | |
bool | moveAlignmentForward (size_t numBytes) |
This function moves the alignment forward. More... | |
void | resetAlignment () |
This function resets the alignment to the current position in the buffer. More... | |
Cdr & | operator<< (const uint8_t octet_t) |
This operator serializes an octet. More... | |
Cdr & | operator<< (const char char_t) |
This operator serializes a character. More... | |
Cdr & | operator<< (const int8_t int8) |
This operator serializes a int8_t. More... | |
Cdr & | operator<< (const uint16_t ushort_t) |
This operator serializes an unsigned short. More... | |
Cdr & | operator<< (const int16_t short_t) |
This operator serializes a short. More... | |
Cdr & | operator<< (const uint32_t ulong_t) |
This operator serializes an unsigned long. More... | |
Cdr & | operator<< (const int32_t long_t) |
This operator serializes a long. More... | |
Cdr & | operator<< (const wchar_t wchar) |
This operator serializes a wide-char. More... | |
Cdr & | operator<< (const uint64_t ulonglong_t) |
This operator serializes an unsigned long long. More... | |
Cdr & | operator<< (const int64_t longlong_t) |
This operator serializes a long long. More... | |
Cdr & | operator<< (const float float_t) |
This operator serializes a float. More... | |
Cdr & | operator<< (const double double_t) |
This operator serializes a double. More... | |
Cdr & | operator<< (const long double ldouble_t) |
This operator serializes a long double. More... | |
Cdr & | operator<< (const bool bool_t) |
This operator serializes a boolean. More... | |
Cdr & | operator<< (const char *string_t) |
This operator serializes a null-terminated c-string. More... | |
Cdr & | operator<< (char *string_t) |
This operator serializes a null-terminated c-string. More... | |
Cdr & | operator<< (const std::string &string_t) |
This operator serializes a string. More... | |
Cdr & | operator<< (const std::wstring &string_t) |
This operator serializes a wstring. More... | |
template<class _T > | |
Cdr & | operator<< (const std::vector< _T > &vector_t) |
This operator template is used to serialize sequences. More... | |
template<class _K , class _T > | |
Cdr & | operator<< (const std::map< _K, _T > &map_t) |
This operator template is used to serialize maps. More... | |
template<class _T > | |
Cdr & | operator<< (const _T &type_t) |
This operator template is used to serialize any other non-basic type. More... | |
Cdr & | operator>> (uint8_t &octet_t) |
This operator deserializes an octet. More... | |
Cdr & | operator>> (char &char_t) |
This operator deserializes a character. More... | |
Cdr & | operator>> (int8_t &int8) |
This operator deserializes a int8_t. More... | |
Cdr & | operator>> (uint16_t &ushort_t) |
This operator deserializes an unsigned short. More... | |
Cdr & | operator>> (int16_t &short_t) |
This operator deserializes a short. More... | |
Cdr & | operator>> (uint32_t &ulong_t) |
This operator deserializes an unsigned long. More... | |
Cdr & | operator>> (int32_t &long_t) |
This operator deserializes a long. More... | |
Cdr & | operator>> (wchar_t &wchar) |
This operator deserializes a wide-char. More... | |
Cdr & | operator>> (uint64_t &ulonglong_t) |
This operator deserializes a unsigned long long. More... | |
Cdr & | operator>> (int64_t &longlong_t) |
This operator deserializes a long long. More... | |
Cdr & | operator>> (float &float_t) |
This operator deserializes a float. More... | |
Cdr & | operator>> (double &double_t) |
This operator deserializes a double. More... | |
Cdr & | operator>> (long double &ldouble_t) |
This operator deserializes a long double. More... | |
Cdr & | operator>> (bool &bool_t) |
This operator deserializes a boolean. More... | |
Cdr & | operator>> (char *&string_t) |
This operator deserializes a null-terminated c-string. More... | |
Cdr & | operator>> (std::string &string_t) |
This operator deserializes a string. More... | |
Cdr & | operator>> (std::wstring &string_t) |
This operator deserializes a string. More... | |
template<class _T > | |
Cdr & | operator>> (std::vector< _T > &vector_t) |
This operator template is used to deserialize sequences. More... | |
template<class _K , class _T > | |
Cdr & | operator>> (std::map< _K, _T > &map_t) |
This operator template is used to deserialize maps. More... | |
template<class _T > | |
Cdr & | operator>> (_T &type_t) |
This operator template is used to deserialize any other non-basic type. More... | |
Cdr & | serialize (const uint8_t octet_t) |
This function serializes an octet. More... | |
Cdr & | serialize (const uint8_t octet_t, Endianness endianness) |
This function serializes an octet with a different endianness. More... | |
Cdr & | serialize (const char char_t) |
This function serializes a character. More... | |
Cdr & | serialize (const char char_t, Endianness endianness) |
This function serializes a character with a different endianness. More... | |
Cdr & | serialize (const int8_t int8) |
This function serializes an int8_t. More... | |
Cdr & | serialize (const int8_t int8, Endianness endianness) |
This function serializes an int8_t with a different endianness. More... | |
Cdr & | serialize (const uint16_t ushort_t) |
This function serializes an unsigned short. More... | |
Cdr & | serialize (const uint16_t ushort_t, Endianness endianness) |
This function serializes an unsigned short with a different endianness. More... | |
Cdr & | serialize (const int16_t short_t) |
This function serializes a short. More... | |
Cdr & | serialize (const int16_t short_t, Endianness endianness) |
This function serializes a short with a different endianness. More... | |
Cdr & | serialize (const uint32_t ulong_t) |
This function serializes an unsigned long. More... | |
Cdr & | serialize (const uint32_t ulong_t, Endianness endianness) |
This function serializes an unsigned long with a different endianness. More... | |
Cdr & | serialize (const int32_t long_t) |
This function serializes a long. More... | |
Cdr & | serialize (const int32_t long_t, Endianness endianness) |
This function serializes a long with a different endianness. More... | |
Cdr & | serialize (const wchar_t wchar) |
This function serializes a wide-char. More... | |
Cdr & | serialize (const wchar_t wchar, Endianness endianness) |
This function serializes a wide-char with a different endianness. More... | |
Cdr & | serialize (const uint64_t ulonglong_t) |
This function serializes an unsigned long long. More... | |
Cdr & | serialize (const uint64_t ulonglong_t, Endianness endianness) |
This function serializes an unsigned long long with a different endianness. More... | |
Cdr & | serialize (const int64_t longlong_t) |
This function serializes a long long. More... | |
Cdr & | serialize (const int64_t longlong_t, Endianness endianness) |
This function serializes a long long with a different endianness. More... | |
Cdr & | serialize (const float float_t) |
This function serializes a float. More... | |
Cdr & | serialize (const float float_t, Endianness endianness) |
This function serializes a float with a different endianness. More... | |
Cdr & | serialize (const double double_t) |
This function serializes a double. More... | |
Cdr & | serialize (const double double_t, Endianness endianness) |
This function serializes a double with a different endianness. More... | |
Cdr & | serialize (const long double ldouble_t) |
This function serializes a long double. More... | |
Cdr & | serialize (const long double ldouble_t, Endianness endianness) |
This function serializes a long double with a different endianness. More... | |
Cdr & | serialize (const bool bool_t) |
This function serializes a boolean. More... | |
Cdr & | serialize (const bool bool_t, Endianness endianness) |
This function serializes a boolean with a different endianness. More... | |
Cdr & | serialize (char *string_t) |
This function serializes a string. More... | |
Cdr & | serialize (const char *string_t) |
This function serializes a string. More... | |
Cdr & | serialize (const wchar_t *string_t) |
This function serializes a wstring. More... | |
Cdr & | serialize (const char *string_t, Endianness endianness) |
This function serializes a string with a different endianness. More... | |
Cdr & | serialize (const wchar_t *string_t, Endianness endianness) |
This function serializes a wstring with a different endianness. More... | |
Cdr & | serialize (const std::string &string_t) |
This function serializes a std::string. More... | |
Cdr & | serialize (const std::wstring &string_t) |
This function serializes a std::wstring. More... | |
Cdr & | serialize (const std::string &string_t, Endianness endianness) |
This function serializes a std::string with a different endianness. More... | |
template<class _T > | |
Cdr & | serialize (const std::vector< _T > &vector_t) |
This function template serializes a sequence. More... | |
template<class _K , class _T > | |
Cdr & | serialize (const std::map< _K, _T > &map_t) |
This function template serializes a map. More... | |
template<class _T > | |
Cdr & | serialize (const std::vector< _T > &vector_t, Endianness endianness) |
This function template serializes a sequence with a different endianness. More... | |
template<class _T > | |
Cdr & | serialize (const _T &type_t) |
This function template serializes a non-basic object. More... | |
Cdr & | serializeArray (const uint8_t *octet_t, size_t numElements) |
This function serializes an array of octets. More... | |
Cdr & | serializeArray (const uint8_t *octet_t, size_t numElements, Endianness endianness) |
This function serializes an array of octets with a different endianness. More... | |
Cdr & | serializeArray (const char *char_t, size_t numElements) |
This function serializes an array of characters. More... | |
Cdr & | serializeArray (const char *char_t, size_t numElements, Endianness endianness) |
This function serializes an array of characters with a different endianness. More... | |
Cdr & | serializeArray (const int8_t *int8, size_t numElements) |
This function serializes an array of int8_t. More... | |
Cdr & | serializeArray (const int8_t *int8, size_t numElements, Endianness endianness) |
This function serializes an array of int8_t with a different endianness. More... | |
Cdr & | serializeArray (const uint16_t *ushort_t, size_t numElements) |
This function serializes an array of unsigned shorts. More... | |
Cdr & | serializeArray (const uint16_t *ushort_t, size_t numElements, Endianness endianness) |
This function serializes an array of unsigned shorts with a different endianness. More... | |
Cdr & | serializeArray (const int16_t *short_t, size_t numElements) |
This function serializes an array of shorts. More... | |
Cdr & | serializeArray (const int16_t *short_t, size_t numElements, Endianness endianness) |
This function serializes an array of shorts with a different endianness. More... | |
Cdr & | serializeArray (const uint32_t *ulong_t, size_t numElements) |
This function serializes an array of unsigned longs. More... | |
Cdr & | serializeArray (const uint32_t *ulong_t, size_t numElements, Endianness endianness) |
This function serializes an array of unsigned longs with a different endianness. More... | |
Cdr & | serializeArray (const int32_t *long_t, size_t numElements) |
This function serializes an array of longs. More... | |
Cdr & | serializeArray (const int32_t *long_t, size_t numElements, Endianness endianness) |
This function serializes an array of longs with a different endianness. More... | |
Cdr & | serializeArray (const wchar_t *wchar, size_t numElements) |
This function serializes an array of wide-chars. More... | |
Cdr & | serializeArray (const wchar_t *wchar, size_t numElements, Endianness endianness) |
This function serializes an array of wide-chars with a different endianness. More... | |
Cdr & | serializeArray (const uint64_t *ulonglong_t, size_t numElements) |
This function serializes an array of unsigned long longs. More... | |
Cdr & | serializeArray (const uint64_t *ulonglong_t, size_t numElements, Endianness endianness) |
This function serializes an array of unsigned long longs with a different endianness. More... | |
Cdr & | serializeArray (const int64_t *longlong_t, size_t numElements) |
This function serializes an array of long longs. More... | |
Cdr & | serializeArray (const int64_t *longlong_t, size_t numElements, Endianness endianness) |
This function serializes an array of long longs with a different endianness. More... | |
Cdr & | serializeArray (const float *float_t, size_t numElements) |
This function serializes an array of floats. More... | |
Cdr & | serializeArray (const float *float_t, size_t numElements, Endianness endianness) |
This function serializes an array of floats with a different endianness. More... | |
Cdr & | serializeArray (const double *double_t, size_t numElements) |
This function serializes an array of doubles. More... | |
Cdr & | serializeArray (const double *double_t, size_t numElements, Endianness endianness) |
This function serializes an array of doubles with a different endianness. More... | |
Cdr & | serializeArray (const long double *ldouble_t, size_t numElements) |
This function serializes an array of long doubles. More... | |
Cdr & | serializeArray (const long double *ldouble_t, size_t numElements, Endianness endianness) |
This function serializes an array of long doubles with a different endianness. More... | |
Cdr & | serializeArray (const bool *bool_t, size_t numElements) |
This function serializes an array of booleans. More... | |
Cdr & | serializeArray (const bool *bool_t, size_t numElements, Endianness endianness) |
This function serializes an array of booleans with a different endianness. More... | |
Cdr & | serializeArray (const std::string *string_t, size_t numElements) |
This function serializes an array of strings. More... | |
Cdr & | serializeArray (const std::wstring *string_t, size_t numElements) |
This function serializes an array of wide-strings. More... | |
Cdr & | serializeArray (const std::string *string_t, size_t numElements, Endianness endianness) |
This function serializes an array of strings with a different endianness. More... | |
Cdr & | serializeArray (const std::wstring *string_t, size_t numElements, Endianness endianness) |
This function serializes an array of wide-strings with a different endianness. More... | |
template<class _T > | |
Cdr & | serializeArray (const std::vector< _T > *vector_t, size_t numElements) |
This function template serializes an array of sequences of objects. More... | |
template<class _T > | |
Cdr & | serializeArray (const _T *type_t, size_t numElements) |
This function template serializes an array of non-basic objects. More... | |
template<class _T > | |
Cdr & | serializeArray (const _T *type_t, size_t numElements, Endianness endianness) |
This function template serializes an array of non-basic objects with a different endianness. More... | |
template<class _T > | |
Cdr & | serializeSequence (const _T *sequence_t, size_t numElements) |
This function template serializes a raw sequence. More... | |
template<class _T > | |
Cdr & | serializeSequence (const _T *sequence_t, size_t numElements, Endianness endianness) |
This function template serializes a raw sequence with a different endianness. More... | |
Cdr & | deserialize (uint8_t &octet_t) |
This function deserializes an octet. More... | |
Cdr & | deserialize (uint8_t &octet_t, Endianness endianness) |
This function deserializes an octet with a different endianness. More... | |
Cdr & | deserialize (char &char_t) |
This function deserializes a character. More... | |
Cdr & | deserialize (char &char_t, Endianness endianness) |
This function deserializes a character with a different endianness. More... | |
Cdr & | deserialize (int8_t &int8) |
This function deserializes an int8_t. More... | |
Cdr & | deserialize (int8_t &int8, Endianness endianness) |
This function deserializes an int8_t with a different endianness. More... | |
Cdr & | deserialize (uint16_t &ushort_t) |
This function deserializes an unsigned short. More... | |
Cdr & | deserialize (uint16_t &ushort_t, Endianness endianness) |
This function deserializes an unsigned short with a different endianness. More... | |
Cdr & | deserialize (int16_t &short_t) |
This function deserializes a short. More... | |
Cdr & | deserialize (int16_t &short_t, Endianness endianness) |
This function deserializes a short with a different endianness. More... | |
Cdr & | deserialize (uint32_t &ulong_t) |
This function deserializes an unsigned long. More... | |
Cdr & | deserialize (uint32_t &ulong_t, Endianness endianness) |
This function deserializes an unsigned long with a different endianness. More... | |
Cdr & | deserialize (int32_t &long_t) |
This function deserializes a long. More... | |
Cdr & | deserialize (int32_t &long_t, Endianness endianness) |
This function deserializes a long with a different endianness. More... | |
Cdr & | deserialize (wchar_t &wchar) |
This function deserializes a wide-char. More... | |
Cdr & | deserialize (wchar_t &wchar, Endianness endianness) |
This function deserializes a wide-char with a different endianness. More... | |
Cdr & | deserialize (uint64_t &ulonglong_t) |
This function deserializes an unsigned long long. More... | |
Cdr & | deserialize (uint64_t &ulonglong_t, Endianness endianness) |
This function deserializes an unsigned long long with a different endianness. More... | |
Cdr & | deserialize (int64_t &longlong_t) |
This function deserializes a long long. More... | |
Cdr & | deserialize (int64_t &longlong_t, Endianness endianness) |
This function deserializes a long long with a different endianness. More... | |
Cdr & | deserialize (float &float_t) |
This function deserializes a float. More... | |
Cdr & | deserialize (float &float_t, Endianness endianness) |
This function deserializes a float with a different endianness. More... | |
Cdr & | deserialize (double &double_t) |
This function deserializes a double. More... | |
Cdr & | deserialize (double &double_t, Endianness endianness) |
This function deserializes a double with a different endianness. More... | |
Cdr & | deserialize (long double &ldouble_t) |
This function deserializes a long double. More... | |
Cdr & | deserialize (long double &ldouble_t, Endianness endianness) |
This function deserializes a long double with a different endianness. More... | |
Cdr & | deserialize (bool &bool_t) |
This function deserializes a boolean. More... | |
Cdr & | deserialize (bool &bool_t, Endianness endianness) |
This function deserializes a boolean with a different endianness. More... | |
Cdr & | deserialize (char *&string_t) |
This function deserializes a string. More... | |
Cdr & | deserialize (wchar_t *&string_t) |
This function deserializes a wide string. More... | |
Cdr & | deserialize (char *&string_t, Endianness endianness) |
This function deserializes a string with a different endianness. More... | |
Cdr & | deserialize (wchar_t *&string_t, Endianness endianness) |
This function deserializes a wide string with a different endianness. More... | |
Cdr & | deserialize (std::string &string_t) |
This function deserializes a std::string. More... | |
Cdr & | deserialize (std::wstring &string_t) |
This function deserializes a std::string. More... | |
Cdr & | deserialize (std::string &string_t, Endianness endianness) |
This function deserializes a string with a different endianness. More... | |
Cdr & | deserialize (std::wstring &string_t, Endianness endianness) |
This function deserializes a string with a different endianness. More... | |
template<class _T > | |
Cdr & | deserialize (std::vector< _T > &vector_t) |
This function template deserializes a sequence. More... | |
template<class _K , class _T > | |
Cdr & | deserialize (std::map< _K, _T > &map_t) |
This function template deserializes a map. More... | |
template<class _T > | |
Cdr & | deserialize (std::vector< _T > &vector_t, Endianness endianness) |
This function template deserializes a sequence with a different endianness. More... | |
template<class _T > | |
Cdr & | deserialize (_T &type_t) |
This function template deserializes a non-basic object. More... | |
Cdr & | deserializeArray (uint8_t *octet_t, size_t numElements) |
This function deserializes an array of octets. More... | |
Cdr & | deserializeArray (uint8_t *octet_t, size_t numElements, Endianness endianness) |
This function deserializes an array of octets with a different endianness. More... | |
Cdr & | deserializeArray (char *char_t, size_t numElements) |
This function deserializes an array of characters. More... | |
Cdr & | deserializeArray (char *char_t, size_t numElements, Endianness endianness) |
This function deserializes an array of characters with a different endianness. More... | |
Cdr & | deserializeArray (int8_t *int8, size_t numElements) |
This function deserializes an array of int8_t. More... | |
Cdr & | deserializeArray (int8_t *int8, size_t numElements, Endianness endianness) |
This function deserializes an array of int8_t with a different endianness. More... | |
Cdr & | deserializeArray (uint16_t *ushort_t, size_t numElements) |
This function deserializes an array of unsigned shorts. More... | |
Cdr & | deserializeArray (uint16_t *ushort_t, size_t numElements, Endianness endianness) |
This function deserializes an array of unsigned shorts with a different endianness. More... | |
Cdr & | deserializeArray (int16_t *short_t, size_t numElements) |
This function deserializes an array of shorts. More... | |
Cdr & | deserializeArray (int16_t *short_t, size_t numElements, Endianness endianness) |
This function deserializes an array of shorts with a different endianness. More... | |
Cdr & | deserializeArray (uint32_t *ulong_t, size_t numElements) |
This function deserializes an array of unsigned longs. More... | |
Cdr & | deserializeArray (uint32_t *ulong_t, size_t numElements, Endianness endianness) |
This function deserializes an array of unsigned longs with a different endianness. More... | |
Cdr & | deserializeArray (int32_t *long_t, size_t numElements) |
This function deserializes an array of longs. More... | |
Cdr & | deserializeArray (int32_t *long_t, size_t numElements, Endianness endianness) |
This function deserializes an array of longs with a different endianness. More... | |
Cdr & | deserializeArray (wchar_t *wchar, size_t numElements) |
This function deserializes an array of wide-chars. More... | |
Cdr & | deserializeArray (wchar_t *wchar, size_t numElements, Endianness endianness) |
This function deserializes an array of wide-chars with a different endianness. More... | |
Cdr & | deserializeArray (uint64_t *ulonglong_t, size_t numElements) |
This function deserializes an array of unsigned long longs. More... | |
Cdr & | deserializeArray (uint64_t *ulonglong_t, size_t numElements, Endianness endianness) |
This function deserializes an array of unsigned long longs with a different endianness. More... | |
Cdr & | deserializeArray (int64_t *longlong_t, size_t numElements) |
This function deserializes an array of long longs. More... | |
Cdr & | deserializeArray (int64_t *longlong_t, size_t numElements, Endianness endianness) |
This function deserializes an array of long longs with a different endianness. More... | |
Cdr & | deserializeArray (float *float_t, size_t numElements) |
This function deserializes an array of floats. More... | |
Cdr & | deserializeArray (float *float_t, size_t numElements, Endianness endianness) |
This function deserializes an array of floats with a different endianness. More... | |
Cdr & | deserializeArray (double *double_t, size_t numElements) |
This function deserializes an array of doubles. More... | |
Cdr & | deserializeArray (double *double_t, size_t numElements, Endianness endianness) |
This function deserializes an array of doubles with a different endianness. More... | |
Cdr & | deserializeArray (long double *ldouble_t, size_t numElements) |
This function deserializes an array of long doubles. More... | |
Cdr & | deserializeArray (long double *ldouble_t, size_t numElements, Endianness endianness) |
This function deserializes an array of long doubles with a different endianness. More... | |
Cdr & | deserializeArray (bool *bool_t, size_t numElements) |
This function deserializes an array of booleans. More... | |
Cdr & | deserializeArray (bool *bool_t, size_t numElements, Endianness endianness) |
This function deserializes an array of booleans with a different endianness. More... | |
Cdr & | deserializeArray (std::string *string_t, size_t numElements) |
This function deserializes an array of strings. More... | |
Cdr & | deserializeArray (std::wstring *string_t, size_t numElements) |
This function deserializes an array of wide-strings. More... | |
Cdr & | deserializeArray (std::string *string_t, size_t numElements, Endianness endianness) |
This function deserializes an array of strings with a different endianness. More... | |
Cdr & | deserializeArray (std::wstring *string_t, size_t numElements, Endianness endianness) |
This function deserializes an array of wide-strings with a different endianness. More... | |
template<class _T > | |
Cdr & | deserializeArray (std::vector< _T > *vector_t, size_t numElements) |
This function deserializes an array of sequences of objects. More... | |
template<class _T > | |
Cdr & | deserializeArray (_T *type_t, size_t numElements) |
This function template deserializes an array of non-basic objects. More... | |
template<class _T > | |
Cdr & | deserializeArray (_T *type_t, size_t numElements, Endianness endianness) |
This function template deserializes an array of non-basic objects with a different endianness. More... | |
template<class _T > | |
Cdr & | deserializeSequence (_T *&sequence_t, size_t &numElements) |
This function template deserializes a raw sequence. More... | |
template<class _T > | |
Cdr & | deserializeSequence (_T *&sequence_t, size_t &numElements, Endianness endianness) |
This function template deserializes a raw sequence with a different endianness. More... | |
Static Public Member Functions | |
static size_t | alignment (size_t current_alignment, size_t dataSize) |
Get the number of bytes needed to align a position to certain data size. More... | |
Static Public Attributes | |
static const Endianness | DEFAULT_ENDIAN |
Default endiness in the system. More... | |
This class offers an interface to serialize/deserialize some basic types using CDR protocol inside an eprosima::fastcdr::FastBuffer.
enum CdrType |
enum DDSCdrPlFlag |
enum Endianness |
Cdr | ( | FastBuffer & | cdrBuffer, |
const Endianness | endianness = DEFAULT_ENDIAN , |
||
const CdrType | cdrType = CORBA_CDR |
||
) |
This constructor creates an eprosima::fastcdr::Cdr object that can serialize/deserialize the assigned buffer.
cdrBuffer | A reference to the buffer that contains (or will contain) the CDR representation. |
endianness | The initial endianness that will be used. The default value is the endianness of the system. |
cdrType | Represents the type of CDR that will be used in serialization/deserialization. The default value is CORBA CDR. |
|
inlinestatic |
Get the number of bytes needed to align a position to certain data size.
current_alignment | Position to be aligned. |
dataSize | Size of next data to process (should be power of two). |
void changeEndianness | ( | Endianness | endianness | ) |
This function sets the current endianness used by the CDR type.
endianness | The new endianness value. |
|
inline |
This function template deserializes a non-basic object.
type_t | The variable that will store the object read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserialize | ( | bool & | bool_t | ) |
This function deserializes a boolean.
bool_t | The variable that will store the boolean read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
exception::BadParamException | This exception is thrown when trying to deserialize an invalid value. |
|
inline |
This function deserializes a boolean with a different endianness.
bool_t | The variable that will store the boolean read from the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
exception::BadParamException | This exception is thrown when trying to deserialize an invalid value. |
Cdr& deserialize | ( | char & | char_t | ) |
This function deserializes a character.
char_t | The variable that will store the character read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes a character with a different endianness.
char_t | The variable that will store the character read from the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserialize | ( | char *& | string_t | ) |
This function deserializes a string.
This function allocates memory to store the string. The user pointer will be set to point this allocated memory. The user will have to free this allocated memory using free()
string_t | The pointer that will point to the string read from the buffer. The user will have to free the allocated memory using free() |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserialize | ( | char *& | string_t, |
Endianness | endianness | ||
) |
This function deserializes a string with a different endianness.
This function allocates memory to store the string. The user pointer will be set to point this allocated memory. The user will have to free this allocated memory using free()
string_t | The pointer that will point to the string read from the buffer. |
endianness | Endianness that will be used in the deserialization of this value. The user will have to free the allocated memory using free() |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserialize | ( | double & | double_t | ) |
This function deserializes a double.
double_t | The variable that will store the double read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserialize | ( | double & | double_t, |
Endianness | endianness | ||
) |
This function deserializes a double with a different endianness.
double_t | The variable that will store the double read from the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserialize | ( | float & | float_t | ) |
This function deserializes a float.
float_t | The variable that will store the float read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserialize | ( | float & | float_t, |
Endianness | endianness | ||
) |
This function deserializes a float with a different endianness.
float_t | The variable that will store the float read from the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserialize | ( | int16_t & | short_t | ) |
This function deserializes a short.
short_t | The variable that will store the short read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserialize | ( | int16_t & | short_t, |
Endianness | endianness | ||
) |
This function deserializes a short with a different endianness.
short_t | The variable that will store the short read from the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserialize | ( | int32_t & | long_t | ) |
This function deserializes a long.
long_t | The variable that will store the long read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserialize | ( | int32_t & | long_t, |
Endianness | endianness | ||
) |
This function deserializes a long with a different endianness.
long_t | The variable that will store the long read from the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserialize | ( | int64_t & | longlong_t | ) |
This function deserializes a long long.
longlong_t | The variable that will store the long long read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserialize | ( | int64_t & | longlong_t, |
Endianness | endianness | ||
) |
This function deserializes a long long with a different endianness.
longlong_t | The variable that will store the long long read from the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an int8_t.
int8 | The variable that will store the int8_t read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an int8_t with a different endianness.
int8 | The variable that will store the int8_t read from the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserialize | ( | long double & | ldouble_t | ) |
This function deserializes a long double.
ldouble_t | The variable that will store the long double read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserialize | ( | long double & | ldouble_t, |
Endianness | endianness | ||
) |
This function deserializes a long double with a different endianness.
ldouble_t | The variable that will store the long double read from the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function template deserializes a map.
map_t | The variable that will store the map read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes a std::string.
string_t | The variable that will store the string read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes a string with a different endianness.
string_t | The variable that will store the string read from the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function template deserializes a sequence.
vector_t | The variable that will store the sequence read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function template deserializes a sequence with a different endianness.
vector_t | The variable that will store the sequence read from the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes a std::string.
string_t | The variable that will store the string read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes a string with a different endianness.
string_t | The variable that will store the string read from the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an unsigned short.
ushort_t | The variable that will store the unsigned short read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an unsigned short with a different endianness.
ushort_t | The variable that will store the unsigned short read from the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an unsigned long.
ulong_t | The variable that will store the unsigned long read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an unsigned long with a different endianness.
ulong_t | The variable that will store the unsigned long read from the buffer.. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an unsigned long long.
ulonglong_t | The variable that will store the unsigned long long read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an unsigned long long with a different endianness.
ulonglong_t | The variable that will store the unsigned long long read from the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an octet.
octet_t | The variable that will store the octet read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an octet with a different endianness.
octet_t | The variable that will store the octet read from the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes a wide-char.
wchar | The variable that will store the wide-char read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes a wide-char with a different endianness.
wchar | The variable that will store the wide-char read from the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserialize | ( | wchar_t *& | string_t | ) |
This function deserializes a wide string.
This function allocates memory to store the wide string. The user pointer will be set to point this allocated memory. The user will have to free this allocated memory using free()
string_t | The pointer that will point to the wide string read from the buffer. The user will have to free the allocated memory using free() |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserialize | ( | wchar_t *& | string_t, |
Endianness | endianness | ||
) |
This function deserializes a wide string with a different endianness.
This function allocates memory to store the wide string. The user pointer will be set to point this allocated memory. The user will have to free this allocated memory using free()
string_t | The pointer that will point to the wide string read from the buffer. |
endianness | Endianness that will be used in the deserialization of this value. The user will have to free the allocated memory using free() |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function template deserializes an array of non-basic objects.
type_t | The variable that will store the array of objects read from the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function template deserializes an array of non-basic objects with a different endianness.
type_t | The variable that will store the array of objects read from the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserializeArray | ( | bool * | bool_t, |
size_t | numElements | ||
) |
This function deserializes an array of booleans.
bool_t | The variable that will store the array of booleans read from the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an array of booleans with a different endianness.
bool_t | The variable that will store the array of booleans read from the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserializeArray | ( | char * | char_t, |
size_t | numElements | ||
) |
This function deserializes an array of characters.
char_t | The variable that will store the array of characters read from the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an array of characters with a different endianness.
char_t | The variable that will store the array of characters read from the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserializeArray | ( | double * | double_t, |
size_t | numElements | ||
) |
This function deserializes an array of doubles.
double_t | The variable that will store the array of doubles read from the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserializeArray | ( | double * | double_t, |
size_t | numElements, | ||
Endianness | endianness | ||
) |
This function deserializes an array of doubles with a different endianness.
double_t | The variable that will store the array of doubles read from the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserializeArray | ( | float * | float_t, |
size_t | numElements | ||
) |
This function deserializes an array of floats.
float_t | The variable that will store the array of floats read from the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserializeArray | ( | float * | float_t, |
size_t | numElements, | ||
Endianness | endianness | ||
) |
This function deserializes an array of floats with a different endianness.
float_t | The variable that will store the array of floats read from the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserializeArray | ( | int16_t * | short_t, |
size_t | numElements | ||
) |
This function deserializes an array of shorts.
short_t | The variable that will store the array of shorts read from the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserializeArray | ( | int16_t * | short_t, |
size_t | numElements, | ||
Endianness | endianness | ||
) |
This function deserializes an array of shorts with a different endianness.
short_t | The variable that will store the array of shorts read from the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserializeArray | ( | int32_t * | long_t, |
size_t | numElements | ||
) |
This function deserializes an array of longs.
long_t | The variable that will store the array of longs read from the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserializeArray | ( | int32_t * | long_t, |
size_t | numElements, | ||
Endianness | endianness | ||
) |
This function deserializes an array of longs with a different endianness.
long_t | The variable that will store the array of longs read from the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserializeArray | ( | int64_t * | longlong_t, |
size_t | numElements | ||
) |
This function deserializes an array of long longs.
longlong_t | The variable that will store the array of long longs read from the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserializeArray | ( | int64_t * | longlong_t, |
size_t | numElements, | ||
Endianness | endianness | ||
) |
This function deserializes an array of long longs with a different endianness.
longlong_t | The variable that will store the array of long longs read from the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an array of int8_t.
int8 | The variable that will store the array of int8_t read from the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an array of int8_t with a different endianness.
int8 | The variable that will store the array of int8_t read from the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserializeArray | ( | long double * | ldouble_t, |
size_t | numElements | ||
) |
This function deserializes an array of long doubles.
ldouble_t | The variable that will store the array of long doubles read from the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserializeArray | ( | long double * | ldouble_t, |
size_t | numElements, | ||
Endianness | endianness | ||
) |
This function deserializes an array of long doubles with a different endianness.
ldouble_t | The variable that will store the array of long doubles read from the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an array of strings.
string_t | The variable that will store the array of strings read from the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an array of strings with a different endianness.
string_t | The variable that will store the array of strings read from the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an array of sequences of objects.
vector_t | The variable that will store the array of sequences of objects read from the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an array of wide-strings.
string_t | The variable that will store the array of wide-strings read from the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an array of wide-strings with a different endianness.
string_t | The variable that will store the array of wide-strings read from the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an array of unsigned shorts.
ushort_t | The variable that will store the array of unsigned shorts read from the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an array of unsigned shorts with a different endianness.
ushort_t | The variable that will store the array of unsigned shorts read from the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an array of unsigned longs.
ulong_t | The variable that will store the array of unsigned longs read from the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an array of unsigned longs with a different endianness.
ulong_t | The variable that will store the array of unsigned longs read from the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an array of unsigned long longs.
ulonglong_t | The variable that will store the array of unsigned long longs read from the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an array of unsigned long longs with a different endianness.
ulonglong_t | The variable that will store the array of unsigned long longs read from the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an array of octets.
octet_t | The variable that will store the array of octets read from the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function deserializes an array of octets with a different endianness.
octet_t | The variable that will store the array of octets read from the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserializeArray | ( | wchar_t * | wchar, |
size_t | numElements | ||
) |
This function deserializes an array of wide-chars.
wchar | The variable that will store the array of wide-chars read from the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& deserializeArray | ( | wchar_t * | wchar, |
size_t | numElements, | ||
Endianness | endianness | ||
) |
This function deserializes an array of wide-chars with a different endianness.
wchar | The variable that will store the array of wide-chars read from the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function template deserializes a raw sequence.
This function allocates memory to store the sequence. The user pointer will be set to point this allocated memory. The user will have to free this allocated memory using free()
sequence_t | The pointer that will store the sequence read from the buffer. |
numElements | This variable return the number of elements of the sequence. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function template deserializes a raw sequence with a different endianness.
This function allocates memory to store the sequence. The user pointer will be set to point this allocated memory. The user will have to free this allocated memory using free()
sequence_t | The pointer that will store the sequence read from the buffer. |
numElements | This variable return the number of elements of the sequence. |
endianness | Endianness that will be used in the deserialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This function returns the current endianness used by the CDR type.
char* getBufferPointer | ( | ) |
This function returns the pointer to the current used buffer.
char* getCurrentPosition | ( | ) |
This function returns the current position in the CDR stream.
uint16_t getDDSCdrOptions | ( | ) | const |
This function returns the option flags when the CDR type is eprosima::fastcdr::DDS_CDR.
DDSCdrPlFlag getDDSCdrPlFlag | ( | ) | const |
This function returns the parameter list flag when the CDR type is eprosima::fastcdr::DDS_CDR.
|
inline |
This function returns the length of the serialized data inside the stream.
state getState | ( | ) |
This function returns the current state of the CDR serialization process.
bool jump | ( | size_t | numBytes | ) |
This function skips a number of bytes in the CDR stream buffer.
numBytes | The number of bytes that will be jumped. |
bool moveAlignmentForward | ( | size_t | numBytes | ) |
This function moves the alignment forward.
numBytes | The number of bytes the alignment should advance. |
|
inline |
This operator serializes a null-terminated c-string.
string_t | Pointer to the begining of the string that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This operator template is used to serialize any other non-basic type.
type_t | A reference to the object that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This operator serializes a boolean.
bool_t | The value of the boolean that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This operator serializes a null-terminated c-string.
string_t | Pointer to the begining of the string that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This operator serializes a character.
char_t | The value of the character that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This operator serializes a double.
double_t | The value of the double that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This operator serializes a float.
float_t | The value of the float that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This operator serializes a short.
short_t | The value of the short that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This operator serializes a long.
long_t | The value of the long that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This operator serializes a long long.
longlong_t | The value of the long long that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This operator serializes a int8_t.
int8 | The value of the int8_t that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This operator serializes a long double.
ldouble_t | The value of the long double that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This operator template is used to serialize maps.
map_t | The map that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This operator serializes a string.
string_t | The string that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This operator template is used to serialize sequences.
vector_t | The sequence that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This operator serializes a wstring.
string_t | The wstring that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This operator serializes an unsigned short.
ushort_t | The value of the unsigned short that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This operator serializes an unsigned long.
ulong_t | The value of the unsigned long that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This operator serializes an unsigned long long.
ulonglong_t | The value of the unsigned long long that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This operator serializes an octet.
octet_t | The value of the octet that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This operator serializes a wide-char.
wchar | The value of the wide-char that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This operator template is used to deserialize any other non-basic type.
type_t | The variable that will store the object read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This operator deserializes a boolean.
bool_t | The variable that will store the boolean read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
exception::BadParamException | This exception is thrown when trying to deserialize an invalid value. |
|
inline |
This operator deserializes a character.
char_t | The variable that will store the character read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This operator deserializes a null-terminated c-string.
string_t | The variable that will store the c-string read from the buffer. Please note that a newly allocated string will be returned. The caller should free the returned pointer when appropiate. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
exception::BadParamException | This exception is thrown when trying to deserialize an invalid value. |
|
inline |
This operator deserializes a double.
double_t | The variable that will store the double read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This operator deserializes a float.
float_t | The variable that will store the float read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This operator deserializes a short.
short_t | The variable that will store the short read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This operator deserializes a long.
long_t | The variable that will store the long read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This operator deserializes a long long.
longlong_t | The variable that will store the long long read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This operator deserializes a int8_t.
int8 | The variable that will store the int8_t read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This operator deserializes a long double.
ldouble_t | The variable that will store the long double read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This operator template is used to deserialize maps.
map_t | The variable that will store the map read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This operator deserializes a string.
string_t | The variable that will store the string read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This operator template is used to deserialize sequences.
vector_t | The variable that will store the sequence read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This operator deserializes a string.
string_t | The variable that will store the string read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This operator deserializes an unsigned short.
ushort_t | The variable that will store the unsigned short read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This operator deserializes an unsigned long.
ulong_t | The variable that will store the unsigned long read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This operator deserializes a unsigned long long.
ulonglong_t | The variable that will store the unsigned long long read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This operator deserializes an octet.
octet_t | The variable that will store the octet read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
|
inline |
This operator deserializes a wide-char.
wchar | The variable that will store the wide-char read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
Cdr& read_encapsulation | ( | ) |
This function reads the encapsulation of the CDR stream.
If the CDR stream contains an encapsulation, then this function should be called before starting to deserialize.
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize a position that exceeds the internal memory size. |
exception::BadParamException | This exception is thrown when trying to deserialize an invalid value. |
void reset | ( | ) |
This function resets the current position in the buffer to the beginning.
|
inline |
This function resets the alignment to the current position in the buffer.
|
inline |
This function serializes a string.
string_t | The pointer to the string that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function template serializes a non-basic object.
type_t | The object that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serialize | ( | const bool | bool_t | ) |
This function serializes a boolean.
bool_t | The value of the boolean that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes a boolean with a different endianness.
bool_t | The value of the boolean that will be serialized in the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serialize | ( | const char * | string_t | ) |
This function serializes a string.
string_t | The pointer to the string that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serialize | ( | const char * | string_t, |
Endianness | endianness | ||
) |
This function serializes a string with a different endianness.
string_t | The pointer to the string that will be serialized in the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serialize | ( | const char | char_t | ) |
This function serializes a character.
char_t | The value of the character that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes a character with a different endianness.
char_t | The value of the character that will be serialized in the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serialize | ( | const double | double_t | ) |
This function serializes a double.
double_t | The value of the double that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serialize | ( | const double | double_t, |
Endianness | endianness | ||
) |
This function serializes a double with a different endianness.
double_t | The value of the double that will be serialized in the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serialize | ( | const float | float_t | ) |
This function serializes a float.
float_t | The value of the float that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serialize | ( | const float | float_t, |
Endianness | endianness | ||
) |
This function serializes a float with a different endianness.
float_t | The value of the float that will be serialized in the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serialize | ( | const int16_t | short_t | ) |
This function serializes a short.
short_t | The value of the short that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serialize | ( | const int16_t | short_t, |
Endianness | endianness | ||
) |
This function serializes a short with a different endianness.
short_t | The value of the short that will be serialized in the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serialize | ( | const int32_t | long_t | ) |
This function serializes a long.
long_t | The value of the long that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serialize | ( | const int32_t | long_t, |
Endianness | endianness | ||
) |
This function serializes a long with a different endianness.
long_t | The value of the long that will be serialized in the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serialize | ( | const int64_t | longlong_t | ) |
This function serializes a long long.
longlong_t | The value of the long long that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serialize | ( | const int64_t | longlong_t, |
Endianness | endianness | ||
) |
This function serializes a long long with a different endianness.
longlong_t | The value of the long long that will be serialized in the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an int8_t.
int8 | The value of the int8_t that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an int8_t with a different endianness.
int8 | The value of the int8_t that will be serialized in the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serialize | ( | const long double | ldouble_t | ) |
This function serializes a long double.
ldouble_t | The value of the long double that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serialize | ( | const long double | ldouble_t, |
Endianness | endianness | ||
) |
This function serializes a long double with a different endianness.
ldouble_t | The value of the long double that will be serialized in the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function template serializes a map.
map_t | The map that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes a std::string.
string_t | The string that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes a std::string with a different endianness.
string_t | The string that will be serialized in the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function template serializes a sequence.
vector_t | The sequence that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function template serializes a sequence with a different endianness.
vector_t | The sequence that will be serialized in the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes a std::wstring.
string_t | The wstring that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an unsigned short.
ushort_t | The value of the unsigned short that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an unsigned short with a different endianness.
ushort_t | The value of the unsigned short that will be serialized in the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an unsigned long.
ulong_t | The value of the unsigned long that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an unsigned long with a different endianness.
ulong_t | The value of the unsigned long that will be serialized in the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an unsigned long long.
ulonglong_t | The value of the unsigned long long that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an unsigned long long with a different endianness.
ulonglong_t | The value of the unsigned long long that will be serialized in the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an octet.
octet_t | The value of the octet that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an octet with a different endianness.
octet_t | The value of the octet that will be serialized in the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serialize | ( | const wchar_t * | string_t | ) |
This function serializes a wstring.
string_t | The pointer to the wstring that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serialize | ( | const wchar_t * | string_t, |
Endianness | endianness | ||
) |
This function serializes a wstring with a different endianness.
string_t | The pointer to the wstring that will be serialized in the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes a wide-char.
wchar | The value of the wide-char that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes a wide-char with a different endianness.
wchar | The value of the wide-char that will be serialized in the buffer. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serialize_encapsulation | ( | ) |
This function writes the encapsulation of the CDR stream.
If the CDR stream should contain an encapsulation, then this function should be called before starting to serialize.
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function template serializes an array of non-basic objects.
type_t | The array of objects that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function template serializes an array of non-basic objects with a different endianness.
type_t | The array of objects that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serializeArray | ( | const bool * | bool_t, |
size_t | numElements | ||
) |
This function serializes an array of booleans.
bool_t | The array of booleans that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an array of booleans with a different endianness.
bool_t | The array of booleans that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serializeArray | ( | const char * | char_t, |
size_t | numElements | ||
) |
This function serializes an array of characters.
char_t | The array of characters that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an array of characters with a different endianness.
char_t | The array of characters that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serializeArray | ( | const double * | double_t, |
size_t | numElements | ||
) |
This function serializes an array of doubles.
double_t | The array of doubles that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serializeArray | ( | const double * | double_t, |
size_t | numElements, | ||
Endianness | endianness | ||
) |
This function serializes an array of doubles with a different endianness.
double_t | The array of doubles that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serializeArray | ( | const float * | float_t, |
size_t | numElements | ||
) |
This function serializes an array of floats.
float_t | The array of floats that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serializeArray | ( | const float * | float_t, |
size_t | numElements, | ||
Endianness | endianness | ||
) |
This function serializes an array of floats with a different endianness.
float_t | The array of floats that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serializeArray | ( | const int16_t * | short_t, |
size_t | numElements | ||
) |
This function serializes an array of shorts.
short_t | The array of shorts that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serializeArray | ( | const int16_t * | short_t, |
size_t | numElements, | ||
Endianness | endianness | ||
) |
This function serializes an array of shorts with a different endianness.
short_t | The array of shorts that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serializeArray | ( | const int32_t * | long_t, |
size_t | numElements | ||
) |
This function serializes an array of longs.
long_t | The array of longs that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serializeArray | ( | const int32_t * | long_t, |
size_t | numElements, | ||
Endianness | endianness | ||
) |
This function serializes an array of longs with a different endianness.
long_t | The array of longs that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serializeArray | ( | const int64_t * | longlong_t, |
size_t | numElements | ||
) |
This function serializes an array of long longs.
longlong_t | The array of long longs that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serializeArray | ( | const int64_t * | longlong_t, |
size_t | numElements, | ||
Endianness | endianness | ||
) |
This function serializes an array of long longs with a different endianness.
longlong_t | The array of long longs that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an array of int8_t.
int8 | The sequence of int8_t that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an array of int8_t with a different endianness.
int8 | The array of int8_t that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serializeArray | ( | const long double * | ldouble_t, |
size_t | numElements | ||
) |
This function serializes an array of long doubles.
ldouble_t | The array of long doubles that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serializeArray | ( | const long double * | ldouble_t, |
size_t | numElements, | ||
Endianness | endianness | ||
) |
This function serializes an array of long doubles with a different endianness.
ldouble_t | The array of long doubles that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an array of strings.
string_t | The array of strings that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an array of strings with a different endianness.
string_t | The array of strings that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function template serializes an array of sequences of objects.
vector_t | The array of sequences of objects that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an array of wide-strings.
string_t | The array of wide-strings that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an array of wide-strings with a different endianness.
string_t | The array of wide-strings that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an array of unsigned shorts.
ushort_t | The array of unsigned shorts that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an array of unsigned shorts with a different endianness.
ushort_t | The array of unsigned shorts that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an array of unsigned longs.
ulong_t | The array of unsigned longs that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an array of unsigned longs with a different endianness.
ulong_t | The array of unsigned longs that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an array of unsigned long longs.
ulonglong_t | The array of unsigned long longs that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an array of unsigned long longs with a different endianness.
ulonglong_t | The array of unsigned long longs that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an array of octets.
octet_t | The sequence of octets that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function serializes an array of octets with a different endianness.
octet_t | The array of octets that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serializeArray | ( | const wchar_t * | wchar, |
size_t | numElements | ||
) |
This function serializes an array of wide-chars.
wchar | The array of wide-chars that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
Cdr& serializeArray | ( | const wchar_t * | wchar, |
size_t | numElements, | ||
Endianness | endianness | ||
) |
This function serializes an array of wide-chars with a different endianness.
wchar | The array of longs that will be serialized in the buffer. |
numElements | Number of the elements in the array. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function template serializes a raw sequence.
sequence_t | Pointer to the sequence that will be serialized in the buffer. |
numElements | The number of elements contained in the sequence. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
|
inline |
This function template serializes a raw sequence with a different endianness.
sequence_t | Pointer to the sequence that will be serialized in the buffer. |
numElements | The number of elements contained in the sequence. |
endianness | Endianness that will be used in the serialization of this value. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize a position that exceeds the internal memory size. |
void setDDSCdrOptions | ( | uint16_t | options | ) |
This function sets the option flags when the CDR type is eprosima::fastcdr::DDS_CDR.
options | New value for the option flags. |
void setDDSCdrPlFlag | ( | DDSCdrPlFlag | plFlag | ) |
This function sets the parameter list flag when the CDR type is eprosima::fastcdr::DDS_CDR.
plFlag | New value for the flag that specifies if the content is a parameter list. |
void setState | ( | state & | state | ) |
This function sets a previous state of the CDR serialization process;.
state | Previous state that will be set. |
|
static |
Default endiness in the system.