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 | |
template<class _T > | |
FastCdr & | deserialize (_T &type_t) |
This function template deserializes a non-basic type object. More... | |
FastCdr & | deserialize (bool &bool_t) |
This function deserializes a boolean. More... | |
FastCdr & | deserialize (char &char_t) |
This function deserializes a character. 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 (double &double_t) |
This function deserializes a double. More... | |
FastCdr & | deserialize (float &float_t) |
This function deserializes a float. More... | |
FastCdr & | deserialize (int16_t &short_t) |
This function deserializes a short. More... | |
FastCdr & | deserialize (int32_t &long_t) |
This function deserializes a long. More... | |
FastCdr & | deserialize (int64_t &longlong_t) |
This function deserializes a long long. More... | |
FastCdr & | deserialize (int8_t &int8) |
This function deserializes an int8_t. More... | |
FastCdr & | deserialize (long double &ldouble_t) |
This function deserializes a long double. More... | |
template<class _T , size_t _Size> | |
FastCdr & | deserialize (std::array< _T, _Size > &array_t) |
This function template deserializes an array. More... | |
FastCdr & | deserialize (std::string &string_t) |
This function deserializes a std::string. More... | |
template<class _T > | |
FastCdr & | deserialize (std::vector< _T > &vector_t) |
This function template deserializes a sequence. More... | |
template<class _T = bool> | |
FastCdr & | deserialize (std::vector< bool > &vector_t) |
This function template deserializes a sequence of booleans. More... | |
FastCdr & | deserialize (std::wstring &string_t) |
This function deserializes a std::wstring. More... | |
FastCdr & | deserialize (uint16_t &ushort_t) |
This function deserializes an unsigned short. More... | |
FastCdr & | deserialize (uint32_t &ulong_t) |
This function deserializes an unsigned long. More... | |
FastCdr & | deserialize (uint64_t &ulonglong_t) |
This function deserializes an unsigned long long. More... | |
FastCdr & | deserialize (uint8_t &octet_t) |
This function deserializes an octet. More... | |
FastCdr & | deserialize (wchar_t &wchar) |
This function deserializes a wide-char. 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... | |
template<class _T > | |
FastCdr & | deserialize_array (_T *type_t, size_t num_elements) |
This function template deserializes an array of non-basic type objects. More... | |
FastCdr & | deserialize_array (bool *bool_t, size_t num_elements) |
This function deserializes an array of booleans. More... | |
FastCdr & | deserialize_array (char *char_t, size_t num_elements) |
This function deserializes an array of characters. More... | |
FastCdr & | deserialize_array (double *double_t, size_t num_elements) |
This function deserializes an array of doubles. More... | |
FastCdr & | deserialize_array (float *float_t, size_t num_elements) |
This function deserializes an array of floats. More... | |
FastCdr & | deserialize_array (int16_t *short_t, size_t num_elements) |
This function deserializes an array of shorts. More... | |
FastCdr & | deserialize_array (int32_t *long_t, size_t num_elements) |
This function deserializes an array of longs. More... | |
FastCdr & | deserialize_array (int64_t *longlong_t, size_t num_elements) |
This function deserializes an array of long longs. More... | |
FastCdr & | deserialize_array (int8_t *int8, size_t num_elements) |
This function deserializes an array of int8_t. More... | |
FastCdr & | deserialize_array (long double *ldouble_t, size_t num_elements) |
This function deserializes an array of long doubles. More... | |
FastCdr & | deserialize_array (std::string *string_t, size_t num_elements) |
This function deserializes an array of strings. More... | |
template<class _T > | |
FastCdr & | deserialize_array (std::vector< _T > *vector_t, size_t num_elements) |
This function template deserializes an array of sequences. More... | |
FastCdr & | deserialize_array (std::wstring *string_t, size_t num_elements) |
This function deserializes an array of wide-strings. More... | |
FastCdr & | deserialize_array (uint16_t *ushort_t, size_t num_elements) |
This function deserializes an array of unsigned shorts. More... | |
FastCdr & | deserialize_array (uint32_t *ulong_t, size_t num_elements) |
This function deserializes an array of unsigned longs. More... | |
FastCdr & | deserialize_array (uint64_t *ulonglong_t, size_t num_elements) |
This function deserializes an array of unsigned long longs. More... | |
FastCdr & | deserialize_array (uint8_t *octet_t, size_t num_elements) |
This function deserializes an array of octets. More... | |
FastCdr & | deserialize_array (wchar_t *wchar, size_t num_elements) |
This function deserializes an array of wide-chars. More... | |
template<class _T > | |
FastCdr & | deserialize_sequence (_T *&sequence_t, size_t &num_elements) |
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... | |
template<class _T = std::string> | |
FastCdr & | deserialize_sequence (std::string *&sequence_t, size_t &num_elements) |
This function template deserializes a string 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... | |
template<class _T = std::wstring> | |
FastCdr & | deserialize_sequence (std::wstring *&sequence_t, size_t &num_elements) |
This function template deserializes a wide-string 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 &cdr_buffer) | |
This constructor creates a eprosima::fastcdr::FastCdr object that can serialize/deserialize the assigned buffer. More... | |
char * | get_current_position () |
This function returns the current position in the CDR stream. More... | |
size_t | get_serialized_data_length () const |
This function returns the length of the serialized data inside the stream. More... | |
FastCdr::state | get_state () |
This function returns the current state of the CDR stream. More... | |
bool | jump (size_t num_bytes) |
This function skips a number of bytes in the CDR stream buffer. More... | |
template<class _T > | |
FastCdr & | operator<< (const _T &type_t) |
This operator template is used to serialize non-basic types. 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 char char_t) |
This operator serializes a character. More... | |
FastCdr & | operator<< (const double double_t) |
This operator serializes a ldouble. More... | |
FastCdr & | operator<< (const float float_t) |
This operator serializes a float. More... | |
FastCdr & | operator<< (const int16_t short_t) |
This operator serializes a short. More... | |
FastCdr & | operator<< (const int32_t long_t) |
This operator serializes a long. More... | |
FastCdr & | operator<< (const int64_t longlong_t) |
This operator serializes a long long. More... | |
FastCdr & | operator<< (const int8_t int8) |
This operator serializes a int8_t. More... | |
FastCdr & | operator<< (const long double ldouble_t) |
This operator serializes a long double. More... | |
template<class _T , size_t _Size> | |
FastCdr & | operator<< (const std::array< _T, _Size > &array_t) |
This operator template is used to serialize arrays. More... | |
FastCdr & | operator<< (const std::string &string_t) |
This operator serializes a string. More... | |
template<class _T > | |
FastCdr & | operator<< (const std::vector< _T > &vector_t) |
This operator template is used to serialize sequences. More... | |
FastCdr & | operator<< (const std::wstring &string_t) |
This operator serializes a wstring. More... | |
FastCdr & | operator<< (const uint16_t ushort_t) |
This operator serializes an unsigned short. More... | |
FastCdr & | operator<< (const uint32_t ulong_t) |
This operator serializes an unsigned long. More... | |
FastCdr & | operator<< (const uint64_t ulonglong_t) |
This operator serializes an unsigned long long. More... | |
FastCdr & | operator<< (const uint8_t octet_t) |
This operator serializes an octet. More... | |
FastCdr & | operator<< (const wchar_t *string_t) |
This operator serializes a null-terminated wide-string. More... | |
FastCdr & | operator<< (const wchar_t wchar) |
This operator serializes a wide-char. More... | |
template<class _T > | |
FastCdr & | operator>> (_T &type_t) |
This operator template is used to deserialize non-basic types. More... | |
FastCdr & | operator>> (bool &bool_t) |
This operator deserializes a boolean. More... | |
FastCdr & | operator>> (char &char_t) |
This operator deserializes a character. More... | |
FastCdr & | operator>> (char *&string_t) |
This operator deserializes a null-terminated c-string. More... | |
FastCdr & | operator>> (double &double_t) |
This operator deserializes a double. More... | |
FastCdr & | operator>> (float &float_t) |
This operator deserializes a float. More... | |
FastCdr & | operator>> (int16_t &short_t) |
This operator deserializes a short. More... | |
FastCdr & | operator>> (int32_t &long_t) |
This operator deserializes a long. More... | |
FastCdr & | operator>> (int64_t &longlong_t) |
This operator deserializes a long long. More... | |
FastCdr & | operator>> (int8_t &int8) |
This operator deserializes an int8_t. More... | |
FastCdr & | operator>> (long double &ldouble_t) |
This operator deserializes a long double. More... | |
template<class _T , size_t _Size> | |
FastCdr & | operator>> (std::array< _T, _Size > &array_t) |
This operator template is used to deserialize arrays. More... | |
FastCdr & | operator>> (std::string &string_t) |
This operator deserializes a string. More... | |
template<class _T > | |
FastCdr & | operator>> (std::vector< _T > &vector_t) |
This operator template is used to deserialize sequences. More... | |
FastCdr & | operator>> (std::wstring &string_t) |
This operator deserializes a wstring. More... | |
FastCdr & | operator>> (uint16_t &ushort_t) |
This operator deserializes an unsigned short. More... | |
FastCdr & | operator>> (uint32_t &ulong_t) |
This operator deserializes an unsigned long. More... | |
FastCdr & | operator>> (uint64_t &ulonglong_t) |
This operator deserializes an unsigned long long. More... | |
FastCdr & | operator>> (uint8_t &octet_t) |
This operator deserializes an octet. More... | |
FastCdr & | operator>> (wchar_t &wchar) |
This operator deserializes a wide-char. More... | |
void | reset () |
This function resets the current position in the buffer to the begining. More... | |
template<class _T > | |
FastCdr & | serialize (const _T &type_t) |
This function template serializes a non-basic type. 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 char char_t) |
This function serializes a character. More... | |
FastCdr & | serialize (const double double_t) |
This function serializes a double. More... | |
FastCdr & | serialize (const float float_t) |
This function serializes a float. More... | |
FastCdr & | serialize (const int16_t short_t) |
This function serializes a short. More... | |
FastCdr & | serialize (const int32_t long_t) |
This function serializes a long. More... | |
FastCdr & | serialize (const int64_t longlong_t) |
This function serializes a long long. More... | |
FastCdr & | serialize (const int8_t int8) |
This function serializes an int8_t. More... | |
FastCdr & | serialize (const long double ldouble_t) |
This function serializes a long double. More... | |
template<class _T , size_t _Size> | |
FastCdr & | serialize (const std::array< _T, _Size > &array_t) |
This function template serializes an array. More... | |
FastCdr & | serialize (const std::string &string_t) |
This function serializes a std::string. More... | |
template<class _T > | |
FastCdr & | serialize (const std::vector< _T > &vector_t) |
This function template serializes a sequence. More... | |
template<class _T = bool> | |
FastCdr & | serialize (const std::vector< bool > &vector_t) |
This function template serializes a sequence of booleans. More... | |
FastCdr & | serialize (const std::wstring &string_t) |
This function serializes a std::wstring. More... | |
FastCdr & | serialize (const uint16_t ushort_t) |
This function serializes an unsigned short. More... | |
FastCdr & | serialize (const uint32_t ulong_t) |
This function serializes an unsigned long. More... | |
FastCdr & | serialize (const uint64_t ulonglong_t) |
This function serializes an unsigned long long. More... | |
FastCdr & | serialize (const uint8_t octet_t) |
This function serializes an octet. More... | |
FastCdr & | serialize (const wchar_t *string_t) |
This function serializes a wstring. More... | |
FastCdr & | serialize (const wchar_t wchar) |
This function serializes a wide-char. More... | |
template<class _T > | |
FastCdr & | serialize_array (const _T *type_t, size_t num_elements) |
This function template serializes an array of non-basic type objects. More... | |
FastCdr & | serialize_array (const bool *bool_t, size_t num_elements) |
This function serializes an array of booleans. More... | |
FastCdr & | serialize_array (const char *char_t, size_t num_elements) |
This function serializes an array of characters. More... | |
FastCdr & | serialize_array (const double *double_t, size_t num_elements) |
This function serializes an array of doubles. More... | |
FastCdr & | serialize_array (const float *float_t, size_t num_elements) |
This function serializes an array of floats. More... | |
FastCdr & | serialize_array (const int16_t *short_t, size_t num_elements) |
This function serializes an array of shorts. More... | |
FastCdr & | serialize_array (const int32_t *long_t, size_t num_elements) |
This function serializes an array of longs. More... | |
FastCdr & | serialize_array (const int64_t *longlong_t, size_t num_elements) |
This function serializes an array of long longs. More... | |
FastCdr & | serialize_array (const int8_t *int8, size_t num_elements) |
This function serializes an array of int8_t. More... | |
FastCdr & | serialize_array (const long double *ldouble_t, size_t num_elements) |
This function serializes an array of long doubles. More... | |
FastCdr & | serialize_array (const std::string *string_t, size_t num_elements) |
This function serializes an array of strings. More... | |
template<class _T > | |
FastCdr & | serialize_array (const std::vector< _T > *vector_t, size_t num_elements) |
This function template serializes an array of sequences. More... | |
FastCdr & | serialize_array (const std::wstring *string_t, size_t num_elements) |
This function serializes an array of wstrings. More... | |
FastCdr & | serialize_array (const uint16_t *ushort_t, size_t num_elements) |
This function serializes an array of unsigned shorts. More... | |
FastCdr & | serialize_array (const uint32_t *ulong_t, size_t num_elements) |
This function serializes an array of unsigned longs. More... | |
FastCdr & | serialize_array (const uint64_t *ulonglong_t, size_t num_elements) |
This function serializes an array of unsigned long longs. More... | |
FastCdr & | serialize_array (const uint8_t *octet_t, size_t num_elements) |
This function serializes an array of octets. More... | |
FastCdr & | serialize_array (const wchar_t *wchar, size_t num_elements) |
This function serializes an array of wide-chars. More... | |
template<class _T > | |
FastCdr & | serialize_sequence (const _T *sequence_t, size_t num_elements) |
This function template serializes a raw sequence. More... | |
void | set_state (FastCdr::state &state) |
This function sets a previous state of the CDR stream;. More... | |
Private Member Functions | |
template<class _T , size_t _Size> | |
FastCdr & | deserialize_array (std::array< _T, _Size > *array_t, size_t num_elements) |
This function template detects the content type of the STD container array and deserializes the array. More... | |
FastCdr & | deserialize_bool_sequence (std::vector< bool > &vector_t) |
FastCdr & | deserialize_string_sequence (std::string *&sequence_t, size_t &num_elements) |
FastCdr & | deserialize_wstring_sequence (std::wstring *&sequence_t, size_t &num_elements) |
FastCdr (const FastCdr &)=delete | |
FastCdr & | operator= (const FastCdr &)=delete |
const char * | read_string (uint32_t &length) |
std::wstring | read_wstring (uint32_t &length) |
bool | resize (size_t min_size_inc) |
template<class _T , size_t _Size> | |
FastCdr & | serialize_array (const std::array< _T, _Size > *array_t, size_t num_elements) |
This function template detects the content type of the STD container array and serializes the array. More... | |
FastCdr & | serialize_bool_sequence (const std::vector< bool > &vector_t) |
Private Attributes | |
FastBuffer & | cdr_buffer_ |
Reference to the buffer that will be serialized/deserialized. More... | |
FastBuffer::iterator | current_position_ |
The current position in the serialization/deserialization process. More... | |
FastBuffer::iterator | last_position_ |
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 & | cdr_buffer | ) |
This constructor creates a eprosima::fastcdr::FastCdr object that can serialize/deserialize the assigned buffer.
cdr_buffer | 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 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. |
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.
|
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. |
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.
|
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 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 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 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 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 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 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 function template deserializes an array.
array_t | The variable that will store the array 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::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 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 sequence of booleans.
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 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 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 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 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 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 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. |
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 template deserializes an array of non-basic type objects.
type_t | The variable that will store the array of objects read from the buffer. |
num_elements | 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::deserialize_array | ( | bool * | bool_t, |
size_t | num_elements | ||
) |
This function deserializes an array of booleans.
bool_t | The variable that will store the array of booleans read from the buffer. |
num_elements | 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.
FastCdr & FastCdr::deserialize_array | ( | char * | char_t, |
size_t | num_elements | ||
) |
This function deserializes an array of characters.
char_t | The variable that will store the array of characters read from the buffer. |
num_elements | 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.
FastCdr & FastCdr::deserialize_array | ( | double * | double_t, |
size_t | num_elements | ||
) |
This function deserializes an array of doubles.
double_t | The variable that will store the array of doubles read from the buffer. |
num_elements | 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::deserialize_array | ( | float * | float_t, |
size_t | num_elements | ||
) |
This function deserializes an array of floats.
float_t | The variable that will store the array of floats read from the buffer. |
num_elements | 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::deserialize_array | ( | int16_t * | short_t, |
size_t | num_elements | ||
) |
This function deserializes an array of shorts.
short_t | The variable that will store the array of shorts read from the buffer. |
num_elements | 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.
FastCdr & FastCdr::deserialize_array | ( | int32_t * | long_t, |
size_t | num_elements | ||
) |
This function deserializes an array of longs.
long_t | The variable that will store the array of longs read from the buffer. |
num_elements | 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::deserialize_array | ( | int64_t * | longlong_t, |
size_t | num_elements | ||
) |
This function deserializes an array of long longs.
longlong_t | The variable that will store the array of long longs read from the buffer. |
num_elements | 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.
|
inline |
This function deserializes an array of int8_t.
int8 | The variable that will store the array of int8_t read from the buffer. |
num_elements | 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::deserialize_array | ( | long double * | ldouble_t, |
size_t | num_elements | ||
) |
This function deserializes an array of long doubles.
ldouble_t | The variable that will store the array of long doubles read from the buffer. |
num_elements | 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.
|
inlineprivate |
This function template detects the content type of the STD container array and deserializes the array.
array_t | The variable that will store the array read from the buffer. |
num_elements | 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 strings.
string_t | The variable that will store the array of strings read from the buffer. |
num_elements | 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. |
num_elements | 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. |
num_elements | 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. |
num_elements | 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 longs.
ulong_t | The variable that will store the array of unsigned longs read from the buffer. |
num_elements | 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 long longs.
ulonglong_t | The variable that will store the array of unsigned long longs read from the buffer. |
num_elements | 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 octets.
octet_t | The variable that will store the array of octets read from the buffer. |
num_elements | 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::deserialize_array | ( | wchar_t * | wchar, |
size_t | num_elements | ||
) |
This function deserializes an array of wide-chars.
wchar | The variable that will store the array of wide-chars read from the buffer. |
num_elements | 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.
|
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. |
num_elements | 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. |
|
inline |
This function template deserializes a string 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. |
num_elements | 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. |
|
inline |
This function template deserializes a wide-string 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. |
num_elements | 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::get_current_position | ( | ) |
This function returns the current position in the CDR stream.
Definition at line 56 of file FastCdr.cpp.
|
inline |
FastCdr::state FastCdr::get_state | ( | ) |
This function returns the current state of the CDR stream.
Definition at line 61 of file FastCdr.cpp.
bool FastCdr::jump | ( | size_t | num_bytes | ) |
This function skips a number of bytes in the CDR stream buffer.
num_bytes | The number of bytes that will be jumped. |
Definition at line 42 of file FastCdr.cpp.
|
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 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 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 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 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 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 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 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 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 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 template is used to serialize arrays.
array_t | The array 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 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 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 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 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 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 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 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 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 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. |
|
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 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 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 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 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 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 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 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 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 template is used to deserialize arrays.
array_t | The variable that will store the array 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 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 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 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 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 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 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 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 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. |
|
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 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. |
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.
|
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 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 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 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 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 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 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 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 function template serializes an array.
array_t | The array 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::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 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 sequence of booleans.
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 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 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 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 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 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. |
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 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 template serializes an array of non-basic type objects.
type_t | The array of objects that will be serialized in the buffer. |
num_elements | 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::serialize_array | ( | const bool * | bool_t, |
size_t | num_elements | ||
) |
This function serializes an array of booleans.
bool_t | The array of booleans that will be serialized in the buffer. |
num_elements | 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.
FastCdr & FastCdr::serialize_array | ( | const char * | char_t, |
size_t | num_elements | ||
) |
This function serializes an array of characters.
char_t | The array of characters that will be serialized in the buffer. |
num_elements | 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.
FastCdr & FastCdr::serialize_array | ( | const double * | double_t, |
size_t | num_elements | ||
) |
This function serializes an array of doubles.
double_t | The array of doubles that will be serialized in the buffer. |
num_elements | 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::serialize_array | ( | const float * | float_t, |
size_t | num_elements | ||
) |
This function serializes an array of floats.
float_t | The array of floats that will be serialized in the buffer. |
num_elements | 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::serialize_array | ( | const int16_t * | short_t, |
size_t | num_elements | ||
) |
This function serializes an array of shorts.
short_t | The array of shorts that will be serialized in the buffer. |
num_elements | 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.
FastCdr & FastCdr::serialize_array | ( | const int32_t * | long_t, |
size_t | num_elements | ||
) |
This function serializes an array of longs.
long_t | The array of longs that will be serialized in the buffer. |
num_elements | 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::serialize_array | ( | const int64_t * | longlong_t, |
size_t | num_elements | ||
) |
This function serializes an array of long longs.
longlong_t | The array of long longs that will be serialized in the buffer. |
num_elements | 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.
|
inline |
This function serializes an array of int8_t.
int8 | The sequence of int8_t that will be serialized in the buffer. |
num_elements | 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::serialize_array | ( | const long double * | ldouble_t, |
size_t | num_elements | ||
) |
This function serializes an array of long doubles.
ldouble_t | The array of long doubles that will be serialized in the buffer. |
num_elements | 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.
|
inlineprivate |
This function template detects the content type of the STD container array and serializes the array.
array_t | The array that will be serialized in the buffer. |
num_elements | 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 strings.
string_t | The array of strings that will be serialized in the buffer. |
num_elements | 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. |
num_elements | 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. |
num_elements | 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. |
num_elements | 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 longs.
ulong_t | The array of unsigned longs that will be serialized in the buffer. |
num_elements | 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 long longs.
ulonglong_t | The array of unsigned long longs that will be serialized in the buffer. |
num_elements | 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 octets.
octet_t | The sequence of octets that will be serialized in the buffer. |
num_elements | 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::serialize_array | ( | const wchar_t * | wchar, |
size_t | num_elements | ||
) |
This function serializes an array of wide-chars.
wchar | The array of wide-chars that will be serialized in the buffer. |
num_elements | 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.
|
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. |
num_elements | 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::set_state | ( | 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 |