ADTF  3.18.2
adtf_ddl::serialization Namespace Reference

Namespace for serialization function. More...

Functions

template<typename Decoder , typename Encoder >
tResult transform (const Decoder &oDecoder, Encoder &oEncoder)
 Copies all elements from a decoder to a codec. More...
 
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. More...
 

Detailed Description

Namespace for serialization function.

Function Documentation

◆ transform()

tResult adtf_ddl::serialization::transform ( const Decoder &  oDecoder,
Encoder &  oEncoder 
)

Copies all elements from a decoder to a codec.

Parameters
[in]oDecoderThe source decoder.
[out]oEncoderThe destination codec.
Returns
Standard result.

Definition at line 25 of file builds/digitalwerk/solutions/adtf_content/adtf_base/adtf_core/extern/pkg_ddl/include/adtfddl/serialization/serialization.h.

References RETURN_IF_FAILED, and RETURN_NOERROR.

Referenced by cDDLAutoVec< vectorType >::AutoDelete().

◆ transform_to_buffer()

tResult adtf_ddl::serialization::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.