#include <codec_legacy.h>
Inherits ddl::StaticDecoder.
Inherited by ddl::Codec.
|
|
virtual const void * | getLayoutElement (size_t index) const |
| | this virtual pointer must stay for binary compatiblity.
|
| |
|
| Decoder (const std::shared_ptr< LegacyCodecAccess > &legacy_codec_access) |
| | For internal use only.
|
| |
| | Decoder (std::shared_ptr< const StructLayout >, const void *data, size_t data_size, DataRepresentation rep) |
| |
| | StaticDecoder (std::shared_ptr< const StructLayout > layout, const void *data, size_t data_size, DataRepresentation rep) |
| |
|
| StaticDecoder (const std::shared_ptr< LegacyCodecAccess > &legacy_codec_access) |
| | For internal use only.
|
| |
Decoder for dynamic structures defined by a DataDefinition definition.
- Deprecated
- Use the new ddl::codec::Decoder() instead.
◆ Decoder() [1/4]
| DEV_ESSENTIAL_DEPRECATED_DECODER ddl::Decoder::Decoder |
( |
| ) |
|
|
default |
◆ Decoder() [2/4]
| ddl::Decoder::Decoder |
( |
Decoder && | | ) |
|
|
default |
◆ Decoder() [3/4]
| ddl::Decoder::Decoder |
( |
const Decoder & | | ) |
|
|
delete |
◆ Decoder() [4/4]
| ddl::Decoder::Decoder |
( |
std::shared_ptr< const StructLayout > | , |
|
|
const void * | data, |
|
|
size_t | data_size, |
|
|
DataRepresentation | rep ) |
|
protected |
This CTOR must stay there for binary compatible reason due to an inline usage within old CodecFactory
◆ getBufferSize()
- Parameters
-
| [in] | rep | The data representation for which the buffer size should be returned. |
- Returns
- The size of the structure in the requested data representation.
◆ getElementCount()
| size_t ddl::Decoder::getElementCount |
( |
| ) |
const |
|
overridevirtual |
- Returns
- The amount of elements contained in the data structure.
Reimplemented from ddl::StaticDecoder.
◆ isValid()
- Returns
- Whether or not the decoder is valid.
- Return values
-
| ERR_INVALID_ARG | The passed data is not large enough. |
Reimplemented from ddl::StaticDecoder.
◆ makeCodecFor()
Create a new codec with the current dynamic structure layout for a new data buffer.
- Parameters
-
| [in] | data | The pointer to the new raw data. |
| [in] | data_size | The size of the new raw data. |
| [in] | rep | The representation that the data should be encoded in. |
- Returns
- A codec.
◆ operator=() [1/2]
No copy assignment operator.
◆ operator=() [2/2]
| DEV_ESSENTIAL_DEPRECATED_DECODER Decoder & ddl::Decoder::operator= |
( |
Decoder && | | ) |
|
|
default |
Move assignment operator.
The documentation for this class was generated from the following file:
- /workspace/conan/dev_essential/1.6.3/dw/stable/package/65324bff46e457721a7ba250afe9d61dc2b0e57a/include/ddl/codec/legacy/codec_legacy.h