#include <static_codec_legacy.h>
Inherits ddl::StaticDecoder.
|
| | StaticCodec (std::shared_ptr< const StructLayout > layout, 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.
|
| |
Codec for static structures defined by a DataDefinition definition.
- Deprecated
- Use the new ddl::codec::StaticCodec() instead.
◆ StaticCodec() [1/4]
| DEV_ESSENTIAL_DEPRECATED_STATIC_CODEC ddl::StaticCodec::StaticCodec |
( |
| ) |
|
◆ StaticCodec() [2/4]
◆ StaticCodec() [3/4]
◆ StaticCodec() [4/4]
| ddl::StaticCodec::StaticCodec |
( |
std::shared_ptr< const StructLayout > | layout, |
|
|
void * | data, |
|
|
size_t | data_size, |
|
|
DataRepresentation | rep ) |
|
protected |
◆ getElementAddress() [1/2]
| void * ddl::StaticCodec::getElementAddress |
( |
size_t | index | ) |
|
- Parameters
-
| [in] | index | The index of the element. |
- Returns
- A pointer to the element or NULL in case of an error.
◆ getElementAddress() [2/2]
| const void * ddl::StaticDecoder::getElementAddress |
( |
size_t | index | ) |
const |
- Parameters
-
| [in] | index | The index of the element. |
- Returns
- A pointer to the element or NULL in case of an error.
◆ operator=() [1/2]
◆ operator=() [2/2]
Move assignment operator.
◆ setConstants()
Sets all elements to their constant values defined in the DataDefinition.
- Returns
- Standard result.
◆ setElementValue() [1/2]
Sets the current value of the given element to the given value.
- Parameters
-
| [in] | index | The index of the element. |
| [in] | value | The value. |
- Return values
-
| ERR_INVALID_INDEX | Invalid element index. |
◆ setElementValue() [2/2]
Sets the current value of the given element by copying its data from the passed-in location.
- Parameters
-
| [in] | index | The index of the element. |
| [in] | value | The location where the data should be copied from. |
- Return values
-
| ERR_INVALID_INDEX | Invalid element index. |
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/static_codec_legacy.h