This class offers an interface to serialize/deserialize some basic types using a modified CDR protocol inside a eprosima::FastBuffer. This modified CDR protocol provides a serialization mechanism much faster than common CDR protocol, because it doesn't use alignment. More...
#include <FastCdr.h>
Classes | |
class | state |
This class stores the current state of a CDR serialization. More... | |
Public Member Functions | |
FastCdr & | deserialize (uint8_t &octet_t) |
This function deserializes an octet. More... | |
FastCdr & | deserialize (char &char_t) |
This function deserializes a character. More... | |
FastCdr & | deserialize (int8_t &int8) |
This function deserializes an int8_t. More... | |
FastCdr & | deserialize (uint16_t &ushort_t) |
This function deserializes an unsigned short. More... | |
FastCdr & | deserialize (int16_t &short_t) |
This function deserializes a short. More... | |
FastCdr & | deserialize (uint32_t &ulong_t) |
This function deserializes an unsigned long. More... | |
FastCdr & | deserialize (int32_t &long_t) |
This function deserializes a long. More... | |
FastCdr & | deserialize (wchar_t &wchar) |
This function deserializes a wide-char. More... | |
FastCdr & | deserialize (uint64_t &ulonglong_t) |
This function deserializes an unsigned long long. More... | |
FastCdr & | deserialize (int64_t &longlong_t) |
This function deserializes a long long. More... | |
FastCdr & | deserialize (float &float_t) |
This function deserializes a float. More... | |
FastCdr & | deserialize (double &double_t) |
This function deserializes a double. More... | |
FastCdr & | deserialize (long double &ldouble_t) |
This function deserializes a long double. More... | |
FastCdr & | deserialize (bool &bool_t) |
This function deserializes a boolean. More... | |
FastCdr & | 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() More... | |
FastCdr & | 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() More... | |
FastCdr & | deserialize (std::string &string_t) |
This function deserializes a std::string. More... | |
FastCdr & | deserialize (std::wstring &string_t) |
This function deserializes a std::wstring. More... | |
template<class _T > | |
FastCdr & | deserialize (std::vector< _T > &vector_t) |
This function template deserializes a sequence. More... | |
template<class _T > | |
FastCdr & | deserialize (_T &type_t) |
This function template deserializes a non-basic type object. More... | |
FastCdr & | deserializeArray (uint8_t *octet_t, size_t numElements) |
This function deserializes an array of octets. More... | |
FastCdr & | deserializeArray (char *char_t, size_t numElements) |
This function deserializes an array of characters. More... | |
FastCdr & | deserializeArray (int8_t *int8, size_t numElements) |
This function deserializes an array of int8_t. More... | |
FastCdr & | deserializeArray (uint16_t *ushort_t, size_t numElements) |
This function deserializes an array of unsigned shorts. More... | |
FastCdr & | deserializeArray (int16_t *short_t, size_t numElements) |
This function deserializes an array of shorts. More... | |
FastCdr & | deserializeArray (uint32_t *ulong_t, size_t numElements) |
This function deserializes an array of unsigned longs. More... | |
FastCdr & | deserializeArray (int32_t *long_t, size_t numElements) |
This function deserializes an array of longs. More... | |
FastCdr & | deserializeArray (wchar_t *wchar, size_t numElements) |
This function deserializes an array of wide-chars. More... | |
FastCdr & | deserializeArray (uint64_t *ulonglong_t, size_t numElements) |
This function deserializes an array of unsigned long longs. More... | |
FastCdr & | deserializeArray (int64_t *longlong_t, size_t numElements) |
This function deserializes an array of long longs. More... | |
FastCdr & | deserializeArray (float *float_t, size_t numElements) |
This function deserializes an array of floats. More... | |
FastCdr & | deserializeArray (double *double_t, size_t numElements) |
This function deserializes an array of doubles. More... | |
FastCdr & | deserializeArray (long double *ldouble_t, size_t numElements) |
This function deserializes an array of long doubles. More... | |
FastCdr & | deserializeArray (bool *bool_t, size_t numElements) |
This function deserializes an array of booleans. More... | |
FastCdr & | deserializeArray (std::string *string_t, size_t numElements) |
This function deserializes an array of strings. More... | |
FastCdr & | deserializeArray (std::wstring *string_t, size_t numElements) |
This function deserializes an array of wide-strings. More... | |
template<class _T > | |
FastCdr & | deserializeArray (std::vector< _T > *vector_t, size_t numElements) |
This function template deserializes an array of sequences. More... | |
template<class _T > | |
FastCdr & | deserializeArray (_T *type_t, size_t numElements) |
This function template deserializes an array of non-basic type objects. More... | |
template<class _T > | |
FastCdr & | deserializeSequence (_T *&sequence_t, size_t &numElements) |
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() More... | |
FastCdr (FastBuffer &cdrBuffer) | |
This constructor creates a eprosima::fastcdr::FastCdr object that can serialize/deserialize the assigned 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... | |
FastCdr::state | getState () |
This function returns the current state of the CDR stream. More... | |
bool | jump (size_t numBytes) |
This function skips a number of bytes in the CDR stream buffer. More... | |
FastCdr & | operator<< (const uint8_t octet_t) |
This operator serializes an octet. More... | |
FastCdr & | operator<< (const char char_t) |
This operator serializes a character. More... | |
FastCdr & | operator<< (const int8_t int8) |
This operator serializes a int8_t. More... | |
FastCdr & | operator<< (const uint16_t ushort_t) |
This operator serializes an unsigned short. More... | |
FastCdr & | operator<< (const int16_t short_t) |
This operator serializes a short. More... | |
FastCdr & | operator<< (const uint32_t ulong_t) |
This operator serializes an unsigned long. More... | |
FastCdr & | operator<< (const int32_t long_t) |
This operator serializes a long. More... | |
FastCdr & | operator<< (const wchar_t wchar) |
This operator serializes a wide-char. More... | |
FastCdr & | operator<< (const uint64_t ulonglong_t) |
This operator serializes an unsigned long long. More... | |
FastCdr & | operator<< (const int64_t longlong_t) |
This operator serializes a long long. More... | |
FastCdr & | operator<< (const float float_t) |
This operator serializes a float. More... | |
FastCdr & | operator<< (const double double_t) |
This operator serializes a ldouble. More... | |
FastCdr & | operator<< (const long double ldouble_t) |
This operator serializes a long double. More... | |
FastCdr & | operator<< (const bool bool_t) |
This operator serializes a boolean. More... | |
FastCdr & | operator<< (const char *string_t) |
This operator serializes a null-terminated string. More... | |
FastCdr & | operator<< (const wchar_t *string_t) |
This operator serializes a null-terminated wide-string. More... | |
FastCdr & | operator<< (const std::string &string_t) |
This operator serializes a string. More... | |
FastCdr & | operator<< (const std::wstring &string_t) |
This operator serializes a wstring. More... | |
template<class _T > | |
FastCdr & | operator<< (const std::vector< _T > &vector_t) |
This operator template is used to serialize sequences. More... | |
template<class _T > | |
FastCdr & | operator<< (const _T &type_t) |
This operator template is used to serialize non-basic types. More... | |
FastCdr & | operator>> (uint8_t &octet_t) |
This operator deserializes an octet. More... | |
FastCdr & | operator>> (char &char_t) |
This operator deserializes a character. More... | |
FastCdr & | operator>> (int8_t &int8) |
This operator deserializes an int8_t. More... | |
FastCdr & | operator>> (uint16_t &ushort_t) |
This operator deserializes an unsigned short. More... | |
FastCdr & | operator>> (int16_t &short_t) |
This operator deserializes a short. More... | |
FastCdr & | operator>> (uint32_t &ulong_t) |
This operator deserializes an unsigned long. More... | |
FastCdr & | operator>> (int32_t &long_t) |
This operator deserializes a long. More... | |
FastCdr & | operator>> (wchar_t &wchar) |
This operator deserializes a wide-char. More... | |
FastCdr & | operator>> (uint64_t &ulonglong_t) |
This operator deserializes an unsigned long long. More... | |
FastCdr & | operator>> (int64_t &longlong_t) |
This operator deserializes a long long. More... | |
FastCdr & | operator>> (float &float_t) |
This operator deserializes a float. More... | |
FastCdr & | operator>> (double &double_t) |
This operator deserializes a double. More... | |
FastCdr & | operator>> (long double &ldouble_t) |
This operator deserializes a long double. More... | |
FastCdr & | operator>> (bool &bool_t) |
This operator deserializes a boolean. More... | |
FastCdr & | operator>> (char *&string_t) |
This operator deserializes a null-terminated c-string. More... | |
FastCdr & | operator>> (std::string &string_t) |
This operator deserializes a string. More... | |
FastCdr & | operator>> (std::wstring &string_t) |
This operator deserializes a wstring. More... | |
template<class _T > | |
FastCdr & | operator>> (std::vector< _T > &vector_t) |
This operator template is used to deserialize sequences. More... | |
template<class _T > | |
FastCdr & | operator>> (_T &type_t) |
This operator template is used to deserialize non-basic types. More... | |
void | reset () |
This function resets the current position in the buffer to the begining. More... | |
FastCdr & | serialize (const uint8_t octet_t) |
This function serializes an octet. More... | |
FastCdr & | serialize (const char char_t) |
This function serializes a character. More... | |
FastCdr & | serialize (const int8_t int8) |
This function serializes an int8_t. More... | |
FastCdr & | serialize (const uint16_t ushort_t) |
This function serializes an unsigned short. More... | |
FastCdr & | serialize (const int16_t short_t) |
This function serializes a short. More... | |
FastCdr & | serialize (const uint32_t ulong_t) |
This function serializes an unsigned long. More... | |
FastCdr & | serialize (const int32_t long_t) |
This function serializes a long. More... | |
FastCdr & | serialize (const wchar_t wchar) |
This function serializes a wide-char. More... | |
FastCdr & | serialize (const uint64_t ulonglong_t) |
This function serializes an unsigned long long. More... | |
FastCdr & | serialize (const int64_t longlong_t) |
This function serializes a long long. More... | |
FastCdr & | serialize (const float float_t) |
This function serializes a float. More... | |
FastCdr & | serialize (const double double_t) |
This function serializes a double. More... | |
FastCdr & | serialize (const long double ldouble_t) |
This function serializes a long double. More... | |
FastCdr & | serialize (const bool bool_t) |
This function serializes a boolean. More... | |
FastCdr & | serialize (const char *string_t) |
This function serializes a string. More... | |
FastCdr & | serialize (const wchar_t *string_t) |
This function serializes a wstring. More... | |
FastCdr & | serialize (const std::string &string_t) |
This function serializes a std::string. More... | |
FastCdr & | serialize (const std::wstring &string_t) |
This function serializes a std::wstring. More... | |
template<class _T > | |
FastCdr & | serialize (const std::vector< _T > &vector_t) |
This function template serializes a sequence. More... | |
template<class _T > | |
FastCdr & | serialize (const _T &type_t) |
This function template serializes a non-basic type. More... | |
FastCdr & | serializeArray (const uint8_t *octet_t, size_t numElements) |
This function serializes an array of octets. More... | |
FastCdr & | serializeArray (const char *char_t, size_t numElements) |
This function serializes an array of characters. More... | |
FastCdr & | serializeArray (const int8_t *int8, size_t numElements) |
This function serializes an array of int8_t. More... | |
FastCdr & | serializeArray (const uint16_t *ushort_t, size_t numElements) |
This function serializes an array of unsigned shorts. More... | |
FastCdr & | serializeArray (const int16_t *short_t, size_t numElements) |
This function serializes an array of shorts. More... | |
FastCdr & | serializeArray (const uint32_t *ulong_t, size_t numElements) |
This function serializes an array of unsigned longs. More... | |
FastCdr & | serializeArray (const int32_t *long_t, size_t numElements) |
This function serializes an array of longs. More... | |
FastCdr & | serializeArray (const wchar_t *wchar, size_t numElements) |
This function serializes an array of wide-chars. More... | |
FastCdr & | serializeArray (const uint64_t *ulonglong_t, size_t numElements) |
This function serializes an array of unsigned long longs. More... | |
FastCdr & | serializeArray (const int64_t *longlong_t, size_t numElements) |
This function serializes an array of long longs. More... | |
FastCdr & | serializeArray (const float *float_t, size_t numElements) |
This function serializes an array of floats. More... | |
FastCdr & | serializeArray (const double *double_t, size_t numElements) |
This function serializes an array of doubles. More... | |
FastCdr & | serializeArray (const long double *ldouble_t, size_t numElements) |
This function serializes an array of long doubles. More... | |
FastCdr & | serializeArray (const bool *bool_t, size_t numElements) |
This function serializes an array of booleans. More... | |
FastCdr & | serializeArray (const std::string *string_t, size_t numElements) |
This function serializes an array of strings. More... | |
FastCdr & | serializeArray (const std::wstring *string_t, size_t numElements) |
This function serializes an array of wstrings. More... | |
template<class _T > | |
FastCdr & | serializeArray (const std::vector< _T > *vector_t, size_t numElements) |
This function template serializes an array of sequences. More... | |
template<class _T > | |
FastCdr & | serializeArray (const _T *type_t, size_t numElements) |
This function template serializes an array of non-basic type objects. More... | |
template<class _T > | |
FastCdr & | serializeSequence (const _T *sequence_t, size_t numElements) |
This function template serializes a raw sequence. More... | |
void | setState (FastCdr::state &state) |
This function sets a previous state of the CDR stream;. More... | |
Private Member Functions | |
FastCdr & | deserializeBoolSequence (std::vector< bool > &vector_t) |
FastCdr & | deserializeStringSequence (std::string *&sequence_t, size_t &numElements) |
FastCdr & | deserializeWStringSequence (std::wstring *&sequence_t, size_t &numElements) |
FastCdr (const FastCdr &)=delete | |
FastCdr & | operator= (const FastCdr &)=delete |
const char * | readString (uint32_t &length) |
std::wstring | readWString (uint32_t &length) |
bool | resize (size_t minSizeInc) |
FastCdr & | serializeBoolSequence (const std::vector< bool > &vector_t) |
Private Attributes | |
FastBuffer & | m_cdrBuffer |
Reference to the buffer that will be serialized/deserialized. More... | |
FastBuffer::iterator | m_currentPosition |
The current position in the serialization/deserialization process. More... | |
FastBuffer::iterator | m_lastPosition |
The last position in the buffer;. More... | |
This class offers an interface to serialize/deserialize some basic types using a modified CDR protocol inside a eprosima::FastBuffer. This modified CDR protocol provides a serialization mechanism much faster than common CDR protocol, because it doesn't use alignment.
FastCdr::FastCdr | ( | FastBuffer & | cdrBuffer | ) |
This constructor creates a eprosima::fastcdr::FastCdr object that can serialize/deserialize the assigned buffer.
cdrBuffer | A reference to the buffer that contains (or will contain) the CDR representation. |
Definition at line 34 of file FastCdr.cpp.
|
privatedelete |
|
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 in a position that exceeds the internal memory size. |
|
inline |
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 in 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 in 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 in a position that exceeds the internal memory size. |
|
inline |
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 in 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 in a position that exceeds the internal memory size. |
|
inline |
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 in 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 in 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 in a position that exceeds the internal memory size. |
|
inline |
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 in a position that exceeds the internal memory size. |
|
inline |
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 in a position that exceeds the internal memory size. |
|
inline |
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 in a position that exceeds the internal memory size. |
|
inline |
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 in a position that exceeds the internal memory size. |
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
exception::BadParamException | This exception is thrown when trying to deserialize in an invalid value. |
Definition at line 360 of file FastCdr.cpp.
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 386 of file FastCdr.cpp.
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 414 of file FastCdr.cpp.
|
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 in a position that exceeds the internal memory size. |
|
inline |
This function deserializes a std::wstring.
string_t | The variable that will store the wstring read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize in 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 in a position that exceeds the internal memory size. |
|
inline |
This function template deserializes a non-basic type object.
type_t | The variable that will store the object read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize in 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 in a position that exceeds the internal memory size. |
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 540 of file FastCdr.cpp.
|
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 in 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 in a position that exceeds the internal memory size. |
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 556 of file FastCdr.cpp.
|
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 in a position that exceeds the internal memory size. |
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 573 of file FastCdr.cpp.
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 590 of file FastCdr.cpp.
|
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 in a position that exceeds the internal memory size. |
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 603 of file FastCdr.cpp.
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 620 of file FastCdr.cpp.
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 637 of file FastCdr.cpp.
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 654 of file FastCdr.cpp.
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 511 of file FastCdr.cpp.
|
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 in 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 strings read from the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize in a position that exceeds the internal memory size. |
|
inline |
This function template deserializes an array of sequences.
vector_t | The variable that will store the array of sequences read from the buffer. |
numElements | Number of the elements in the array. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize in a position that exceeds the internal memory size. |
|
inline |
This function template deserializes an array of non-basic type 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 in a position that exceeds the internal memory size. |
|
private |
Definition at line 726 of file FastCdr.cpp.
|
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 in a position that exceeds the internal memory size. |
|
private |
Definition at line 763 of file FastCdr.cpp.
|
private |
Definition at line 789 of file FastCdr.cpp.
char * FastCdr::getCurrentPosition | ( | ) |
This function returns the current position in the CDR stream.
Definition at line 56 of file FastCdr.cpp.
|
inline |
FastCdr::state FastCdr::getState | ( | ) |
This function returns the current state of the CDR stream.
Definition at line 61 of file FastCdr.cpp.
bool FastCdr::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. |
Definition at line 42 of file FastCdr.cpp.
|
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 in 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 in 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 in 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 in 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 in 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 in 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 in 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 in 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 in 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 in 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 in a position that exceeds the internal memory size. |
|
inline |
This operator serializes a ldouble.
double_t | The value of the double that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize in 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 in 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 in a position that exceeds the internal memory size. |
|
inline |
This operator serializes a null-terminated string.
string_t | The value of the string that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize in a position that exceeds the internal memory size. |
|
inline |
This operator serializes a null-terminated wide-string.
string_t | The value of the wide-string that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize in 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 in 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 in 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 in a position that exceeds the internal memory size. |
|
inline |
This operator template is used to serialize non-basic types.
type_t | The object that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize in 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 in a position that exceeds the internal memory size. |
|
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 in a position that exceeds the internal memory size. |
|
inline |
This operator 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 in 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 in 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 in 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 in 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 in 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 in a position that exceeds the internal memory size. |
|
inline |
This operator 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 in 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 in 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 in a position that exceeds the internal memory size. |
|
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 in 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 in 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 in a position that exceeds the internal memory size. |
exception::BadParamException | This exception is thrown when trying to deserialize in an invalid value. |
|
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 string.
string_t | The variable that will store the string read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize in a position that exceeds the internal memory size. |
|
inline |
This operator deserializes a wstring.
string_t | The variable that will store the wstring read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize in 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 in a position that exceeds the internal memory size. |
|
inline |
This operator template is used to deserialize non-basic types.
type_t | The variable that will store the object read from the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to deserialize in a position that exceeds the internal memory size. |
|
private |
Definition at line 452 of file FastCdr.cpp.
|
private |
Definition at line 480 of file FastCdr.cpp.
void FastCdr::reset | ( | ) |
This function resets the current position in the buffer to the begining.
Definition at line 72 of file FastCdr.cpp.
|
private |
Definition at line 77 of file FastCdr.cpp.
|
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 in a position that exceeds the internal memory size. |
|
inline |
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 in 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 in 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 in a position that exceeds the internal memory size. |
|
inline |
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 in 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 in a position that exceeds the internal memory size. |
|
inline |
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 in 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 in 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 in a position that exceeds the internal memory size. |
|
inline |
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 in a position that exceeds the internal memory size. |
|
inline |
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 in a position that exceeds the internal memory size. |
|
inline |
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 in a position that exceeds the internal memory size. |
|
inline |
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 in a position that exceeds the internal memory size. |
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 90 of file FastCdr.cpp.
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 109 of file FastCdr.cpp.
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 143 of file FastCdr.cpp.
|
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 in 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 in 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 in a position that exceeds the internal memory size. |
|
inline |
This function template serializes a non-basic type.
type_t | The object that will be serialized in the buffer. |
exception::NotEnoughMemoryException | This exception is thrown when trying to serialize in 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 in a position that exceeds the internal memory size. |
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 208 of file FastCdr.cpp.
|
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 in 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 in a position that exceeds the internal memory size. |
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 224 of file FastCdr.cpp.
|
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 in a position that exceeds the internal memory size. |
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 241 of file FastCdr.cpp.
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 258 of file FastCdr.cpp.
|
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 in a position that exceeds the internal memory size. |
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 269 of file FastCdr.cpp.
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 286 of file FastCdr.cpp.
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 303 of file FastCdr.cpp.
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 320 of file FastCdr.cpp.
FastCdr & FastCdr::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 in a position that exceeds the internal memory size. |
Definition at line 183 of file FastCdr.cpp.
|
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 in a position that exceeds the internal memory size. |
|
inline |
This function serializes an array of wstrings.
string_t | The array of wstrings 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 in a position that exceeds the internal memory size. |
|
inline |
This function template serializes an array of sequences.
vector_t | The array of sequences 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 in a position that exceeds the internal memory size. |
|
inline |
This function template serializes an array of non-basic type 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 in a position that exceeds the internal memory size. |
|
private |
Definition at line 694 of file FastCdr.cpp.
|
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 in a position that exceeds the internal memory size. |
void FastCdr::setState | ( | FastCdr::state & | state | ) |
This function sets a previous state of the CDR stream;.
state | Previous state that will be set again. |
Definition at line 66 of file FastCdr.cpp.
|
private |
|
private |
|
private |