mirror of
https://github.com/open62541/open62541.git
synced 2025-06-03 04:00:21 +00:00
move variant semantics to the right place
This commit is contained in:
parent
93c98a7703
commit
ddb54aea43
@ -204,8 +204,16 @@ typedef struct {
|
|||||||
} UA_NumericRange;
|
} UA_NumericRange;
|
||||||
|
|
||||||
/** @brief Variants store (arrays of) any data type. Either they provide a pointer to the data in
|
/** @brief Variants store (arrays of) any data type. Either they provide a pointer to the data in
|
||||||
memory, or functions from which the data can be accessed. Variants are replaced together with
|
* memory, or functions from which the data can be accessed. Variants are replaced together with
|
||||||
the data they store (exception: use a data source).*/
|
* the data they store (exception: use a data source).
|
||||||
|
*
|
||||||
|
* Variant semantics:
|
||||||
|
* - arrayLength = -1 && data == NULL: empty variant
|
||||||
|
* - arrayLength = -1 && data == !NULL: variant holds a single element (a scalar)
|
||||||
|
* - arrayLength >= 0: variant holds an array of the appropriate length
|
||||||
|
* data can be NULL if arrayLength == 0
|
||||||
|
*/
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
const UA_DataType *type;
|
const UA_DataType *type;
|
||||||
enum {
|
enum {
|
||||||
@ -447,14 +455,6 @@ UA_Boolean UA_EXPORT UA_ExpandedNodeId_isNull(const UA_ExpandedNodeId *p);
|
|||||||
|
|
||||||
/* Variant */
|
/* Variant */
|
||||||
|
|
||||||
/**
|
|
||||||
* Variant semantics:
|
|
||||||
* - arrayLength = -1 && data == NULL: empty variant
|
|
||||||
* - arrayLength = -1 && data == !NULL: variant holds a single element (a scalar)
|
|
||||||
* - arrayLength >= 0: variant holds an array of the appropriate length
|
|
||||||
* data can be NULL if arrayLength == 0
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the variant to a scalar value that already resides in memory. The value takes on the
|
* Set the variant to a scalar value that already resides in memory. The value takes on the
|
||||||
* lifecycle of the variant and is deleted with it.
|
* lifecycle of the variant and is deleted with it.
|
||||||
|
Loading…
Reference in New Issue
Block a user