ADTF
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ddl::serialization Namespace Reference

definition of the serialization namespace More...

Functions

template<typename DECODER, typename ENCODER>
a_util::result::Result transform (const DECODER &decoder, ENCODER &encoder)
 Copies all elements from a decoder to a codec.
 
a_util::result::Result transformToBuffer (const Decoder &decoder, a_util::memory::MemoryBuffer &buffer, bool zero=false)
 Tranforms the data from a given decoder into the opposite data representation.
 
tResult transform_to_buffer (const cDecoder &oDecoder, A_UTILS_NS::cMemoryBlock &oBuffer, bool bZero=false)
 Tranforms the data from a given decoder into the opposite data representation.
 

Detailed Description

definition of the serialization namespace

Function Documentation

◆ transform()

template<typename DECODER, typename ENCODER>
a_util::result::Result transform ( const DECODER & decoder,
ENCODER & encoder )

Copies all elements from a decoder to a codec.

Parameters
[in]decoderThe source decoder.
[out]encoderThe destination codec.
Returns
Standard result.

Definition at line 32 of file serialization_legacy.h.

◆ transform_to_buffer()

tResult transform_to_buffer ( const cDecoder & oDecoder,
A_UTILS_NS::cMemoryBlock & oBuffer,
bool bZero = false )

Tranforms the data from a given decoder into the opposite data representation.

Allocates the buffer accordingly.

Parameters
[in]oDecoderThe source decoder.
[out]oBufferThe destination buffer object.
[in]bZeroWhether or not to memzero the buffer before writing the elements to it.
Returns
Standard result.

◆ transformToBuffer()

a_util::result::Result transformToBuffer ( const Decoder & decoder,
a_util::memory::MemoryBuffer & buffer,
bool zero = false )

Tranforms the data from a given decoder into the opposite data representation.

Allocates the buffer accordingly.

Parameters
[in]decoderThe source decoder.
[out]bufferThe destination buffer object.
[in]zeroWhether or not to memzero the buffer before writing the elements to it.
Returns
Standard result.