ADTF  3.18.2
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. More...
 
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. More...
 

Detailed Description

definition of the serialization namespace

Function Documentation

◆ transform()

a_util::result::Result ddl::serialization::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.

◆ transformToBuffer()

a_util::result::Result ddl::serialization::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.