15 #ifndef DDL_SERIALIZER_LEGACY_CLASS_HEADER
16 #define DDL_SERIALIZER_LEGACY_CLASS_HEADER
24 namespace serialization {
31 template <
typename DECODER,
typename ENCODER>
34 size_t element_count = decoder.getElementCount();
35 assert(element_count == encoder.getElementCount());
36 for (
size_t element = 0; element < element_count; ++element) {
43 result = encoder.setElementValue(element, &buffer);
49 return a_util::result::SUCCESS;
Memory buffer class to encapsulate and manage raw contiguously memory.
A common result class usable as return value throughout.
Decoder for dynamic structures defined by a DataDefinition definition.
Definition of old Codec legacy header for old Codec API.
bool zero(void *dest, std::size_t dest_size, std::size_t bytes_to_zero)
Portable safe memzero.
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.
a_util::result::Result transform(const DECODER &decoder, ENCODER &encoder)
Copies all elements from a decoder to a codec.
definition of the ddl namespace
Common include for component a_util::result.