S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
sopc_encoder.h
Go to the documentation of this file.
1/*
2 * Licensed to Systerel under one or more contributor license
3 * agreements. See the NOTICE file distributed with this work
4 * for additional information regarding copyright ownership.
5 * Systerel licenses this file to you under the Apache
6 * License, Version 2.0 (the "License"); you may not use this
7 * file except in compliance with the License. You may obtain
8 * a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20#ifndef SOPC_ENCODER_H_
21#define SOPC_ENCODER_H_
22
23#include "sopc_buffer.h"
24#include "sopc_builtintypes.h"
25#include "sopc_encodeabletype.h"
26#include "sopc_enums.h"
27
40
51
57
67
73SOPC_ReturnStatus SOPC_Byte_Write(const SOPC_Byte* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
74SOPC_ReturnStatus SOPC_Byte_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
75SOPC_ReturnStatus SOPC_Byte_Read(SOPC_Byte* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
76SOPC_ReturnStatus SOPC_Byte_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
77SOPC_ReturnStatus SOPC_Boolean_Write(const SOPC_Boolean* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
78SOPC_ReturnStatus SOPC_Boolean_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
79SOPC_ReturnStatus SOPC_Boolean_Read(SOPC_Boolean* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
80SOPC_ReturnStatus SOPC_Boolean_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
81SOPC_ReturnStatus SOPC_SByte_Write(const SOPC_SByte* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
82SOPC_ReturnStatus SOPC_SByte_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
83SOPC_ReturnStatus SOPC_SByte_Read(SOPC_SByte* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
84SOPC_ReturnStatus SOPC_SByte_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
85SOPC_ReturnStatus SOPC_Int16_Write(const int16_t* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
86SOPC_ReturnStatus SOPC_Int16_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
87SOPC_ReturnStatus SOPC_Int16_Read(int16_t* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
88SOPC_ReturnStatus SOPC_Int16_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
89SOPC_ReturnStatus SOPC_UInt16_Write(const uint16_t* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
90SOPC_ReturnStatus SOPC_UInt16_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
91SOPC_ReturnStatus SOPC_UInt16_Read(uint16_t* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
92SOPC_ReturnStatus SOPC_UInt16_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
93SOPC_ReturnStatus SOPC_Int32_Write(const int32_t* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
94SOPC_ReturnStatus SOPC_Int32_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
95SOPC_ReturnStatus SOPC_Int32_Read(int32_t* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
96SOPC_ReturnStatus SOPC_Int32_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
97SOPC_ReturnStatus SOPC_UInt32_Write(const uint32_t* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
98SOPC_ReturnStatus SOPC_UInt32_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
99SOPC_ReturnStatus SOPC_UInt32_Read(uint32_t* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
100SOPC_ReturnStatus SOPC_UInt32_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
101SOPC_ReturnStatus SOPC_Int64_Write(const int64_t* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
102SOPC_ReturnStatus SOPC_Int64_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
103SOPC_ReturnStatus SOPC_Int64_Read(int64_t* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
104SOPC_ReturnStatus SOPC_Int64_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
105SOPC_ReturnStatus SOPC_UInt64_Write(const uint64_t* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
106SOPC_ReturnStatus SOPC_UInt64_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
107SOPC_ReturnStatus SOPC_UInt64_Read(uint64_t* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
108SOPC_ReturnStatus SOPC_UInt64_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
109SOPC_ReturnStatus SOPC_Float_Write(const float* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
110SOPC_ReturnStatus SOPC_Float_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
111SOPC_ReturnStatus SOPC_Float_Read(float* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
112SOPC_ReturnStatus SOPC_Float_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
113SOPC_ReturnStatus SOPC_Double_Write(const double* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
114SOPC_ReturnStatus SOPC_Double_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
115SOPC_ReturnStatus SOPC_Double_Read(double* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
116SOPC_ReturnStatus SOPC_Double_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
117SOPC_ReturnStatus SOPC_DateTime_Write(const SOPC_DateTime* date, SOPC_Buffer* buf, uint32_t nestedStructLevel);
118SOPC_ReturnStatus SOPC_DateTime_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
119SOPC_ReturnStatus SOPC_DateTime_Read(SOPC_DateTime* date, SOPC_Buffer* buf, uint32_t nestedStructLevel);
120SOPC_ReturnStatus SOPC_DateTime_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
121
122SOPC_ReturnStatus SOPC_ByteString_Write(const SOPC_ByteString* str, SOPC_Buffer* buf, uint32_t nestedStructLevel);
123SOPC_ReturnStatus SOPC_ByteString_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
125SOPC_ReturnStatus SOPC_ByteString_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
126SOPC_ReturnStatus SOPC_String_Write(const SOPC_String* str, SOPC_Buffer* buf, uint32_t nestedStructLevel);
127SOPC_ReturnStatus SOPC_String_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
128SOPC_ReturnStatus SOPC_String_Read(SOPC_String* str, SOPC_Buffer* buf, uint32_t nestedStructLevel);
129// Read with a limited length, returns SOPC_WOULD_BLOCK if length is more than restricted
131 int32_t maxLength,
132 SOPC_Buffer* buf,
133 uint32_t nestedStructLevel);
134SOPC_ReturnStatus SOPC_String_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
135SOPC_ReturnStatus SOPC_XmlElement_Write(const SOPC_XmlElement* xml, SOPC_Buffer* buf, uint32_t nestedStructLevel);
136SOPC_ReturnStatus SOPC_XmlElement_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
138SOPC_ReturnStatus SOPC_XmlElement_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
139SOPC_ReturnStatus SOPC_Guid_Write(const SOPC_Guid* guid, SOPC_Buffer* buf, uint32_t nestedStructLevel);
140SOPC_ReturnStatus SOPC_Guid_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
141SOPC_ReturnStatus SOPC_Guid_Read(SOPC_Guid* guid, SOPC_Buffer* buf, uint32_t nestedStructLevel);
142SOPC_ReturnStatus SOPC_Guid_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
143SOPC_ReturnStatus SOPC_NodeId_Write(const SOPC_NodeId* nodeId, SOPC_Buffer* buf, uint32_t nestedStructLevel);
144SOPC_ReturnStatus SOPC_NodeId_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
145SOPC_ReturnStatus SOPC_NodeId_Read(SOPC_NodeId* nodeId, SOPC_Buffer* buf, uint32_t nestedStructLevel);
146SOPC_ReturnStatus SOPC_NodeId_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
148 SOPC_Buffer* buf,
149 uint32_t nestedStructLevel);
150SOPC_ReturnStatus SOPC_ExpandedNodeId_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
152 SOPC_Buffer* buf,
153 uint32_t nestedStructLevel);
154SOPC_ReturnStatus SOPC_ExpandedNodeId_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
155SOPC_ReturnStatus SOPC_StatusCode_Write(const SOPC_StatusCode* status, SOPC_Buffer* buf, uint32_t nestedStructLevel);
156SOPC_ReturnStatus SOPC_StatusCode_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
157SOPC_ReturnStatus SOPC_StatusCode_Read(SOPC_StatusCode* status, SOPC_Buffer* buf, uint32_t nestedStructLevel);
158SOPC_ReturnStatus SOPC_StatusCode_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
160 SOPC_Buffer* buf,
161 uint32_t nestedStructLevel);
162SOPC_ReturnStatus SOPC_DiagnosticInfo_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
164SOPC_ReturnStatus SOPC_DiagnosticInfo_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
166 SOPC_Buffer* buf,
167 uint32_t nestedStructLevel);
168SOPC_ReturnStatus SOPC_QualifiedName_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
170SOPC_ReturnStatus SOPC_QualifiedName_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
171// Note: write only the defaultLocale and defaultText fields (should be the ones to send)
173 SOPC_Buffer* buf,
174 uint32_t nestedStructLevel);
175SOPC_ReturnStatus SOPC_LocalizedText_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
176// Note: set only the defaultLocale and defaultText fields since unique value received
178 SOPC_Buffer* buf,
179 uint32_t nestedStructLevel);
180SOPC_ReturnStatus SOPC_LocalizedText_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
182 SOPC_Buffer* buf,
183 uint32_t nestedStructLevel);
184SOPC_ReturnStatus SOPC_ExtensionObject_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
186SOPC_ReturnStatus SOPC_ExtensionObject_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
187SOPC_ReturnStatus SOPC_Variant_Write(const SOPC_Variant* variant, SOPC_Buffer* buf, uint32_t nestedStructLevel);
188SOPC_ReturnStatus SOPC_Variant_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
189SOPC_ReturnStatus SOPC_Variant_WriteAux_Nested(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
190SOPC_ReturnStatus SOPC_Variant_Read(SOPC_Variant* variant, SOPC_Buffer* buf, uint32_t nestedStructLevel);
191SOPC_ReturnStatus SOPC_Variant_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
192SOPC_ReturnStatus SOPC_Variant_ReadAux_Nested(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
193SOPC_ReturnStatus SOPC_DataValue_Write(const SOPC_DataValue* dataValue, SOPC_Buffer* buf, uint32_t nestedStructLevel);
194SOPC_ReturnStatus SOPC_DataValue_WriteAux(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
195SOPC_ReturnStatus SOPC_DataValue_WriteAux_Nested(const void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
196SOPC_ReturnStatus SOPC_DataValue_Read(SOPC_DataValue* dataValue, SOPC_Buffer* buf, uint32_t nestedStructLevel);
197SOPC_ReturnStatus SOPC_DataValue_ReadAux(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
198SOPC_ReturnStatus SOPC_DataValue_ReadAux_Nested(void* value, SOPC_Buffer* buf, uint32_t nestedStructLevel);
199
201 int32_t* noOfElts,
202 void** eltsArray,
203 size_t sizeOfElt,
207 uint32_t nestedStructLevel);
209 const int32_t* const noOfElts,
210 const void* const* eltsArray,
211 size_t sizeOfElt,
213 uint32_t nestedStructLevel);
214
215// Encode msg body type as node id + msg header + msg body content from encodeable type and corresponding structure
217 SOPC_EncodeableType* encType,
218 SOPC_EncodeableType* headerType,
219 void* msgHeader,
220 void* msgBody);
221
222// Read the msg body type from buffer and return the encodeable type of the msg body
224
226 SOPC_EncodeableType* msgEncType,
227 void** encodeableObj);
228
244 const void* srcValue,
245 SOPC_ByteString* destByteString);
246
264 const SOPC_ByteString* srcByteString,
265 void* destValue);
266
276
283
284#endif /* SOPC_ENCODER_H_ */
A buffer of bytes with a maximum size, length and position.
int8_t SOPC_SByte
Definition sopc_builtintypes.h:142
#define SOPC_BUILTINID_MAX
Definition sopc_builtintypes.h:136
uint8_t SOPC_Byte
Definition sopc_builtintypes.h:138
SOPC_Byte SOPC_Boolean
Definition sopc_builtintypes.h:140
int64_t SOPC_DateTime
OPC UA timestamp format which is 100 nanoseconds from 1601/01/01 00:00:00 UTC.
Definition sopc_builtintypes.h:160
uint32_t SOPC_StatusCode
Definition sopc_builtintypes.h:36
EncodeableType and services on encodeable object.
SOPC_ReturnStatus SOPC_EncodeableObject_PfnEncode(const void *value, SOPC_Buffer *buffer, uint32_t nestedStructLevel)
Encoding function generic signature for an encodeable object *.
Definition sopc_encodeabletype.h:74
void SOPC_EncodeableObject_PfnInitialize(void *value)
Initialization function generic signature for an encodeable object.
Definition sopc_encodeabletype.h:56
void SOPC_EncodeableObject_PfnClear(void *value)
Clear function generic signature for an encodeable object.
Definition sopc_encodeabletype.h:61
SOPC_ReturnStatus SOPC_EncodeableObject_PfnDecode(void *value, SOPC_Buffer *buffer, uint32_t nestedStructLevel)
Decoding function generic signature for an encodeable object.
Definition sopc_encodeabletype.h:89
struct SOPC_BuiltInType_Encoding SOPC_BuiltInType_Encoding
Generic built-in type encoding. Provides all the generic service functions for encoding and decoding ...
SOPC_ReturnStatus SOPC_QualifiedName_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Variant_ReadAux_Nested(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Byte_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Read_Array(SOPC_Buffer *msgBuf, int32_t *noOfElts, void **eltsArray, size_t sizeOfElt, SOPC_EncodeableObject_PfnDecode *decodeFct, SOPC_EncodeableObject_PfnInitialize *initializeFct, SOPC_EncodeableObject_PfnClear *clearFct, uint32_t nestedStructLevel)
SOPC_DiagInfo_EncodingFlag
Definition sopc_encoder.h:42
@ SOPC_DiagInfoEncoding_LocalizedTest
Definition sopc_encoder.h:45
@ SOPC_DiagInfoEncoding_AdditionalInfo
Definition sopc_encoder.h:47
@ SOPC_DiagInfoEncoding_SymbolicId
Definition sopc_encoder.h:43
@ SOPC_DiagInfoEncoding_Namespace
Definition sopc_encoder.h:44
@ SOPC_DiagInfoEncoding_InnerDianosticInfo
Definition sopc_encoder.h:49
@ SOPC_DiagInfoEncoding_Locale
Definition sopc_encoder.h:46
@ SOPC_DiagInfoEncoding_InnerStatusCode
Definition sopc_encoder.h:48
SOPC_ReturnStatus SOPC_String_ReadWithLimitedLength(SOPC_String *str, int32_t maxLength, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_String_Write(const SOPC_String *str, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Int32_Write(const int32_t *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_ByteString_Read(SOPC_ByteString *str, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_UInt64_Write(const uint64_t *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_DataValue_WriteAux_Nested(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Byte_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_DateTime_Read(SOPC_DateTime *date, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_UInt16_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Variant_Read(SOPC_Variant *variant, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_UInt32_Read(uint32_t *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Boolean_Read(SOPC_Boolean *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_XmlElement_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Float_Read(float *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_ExpandedNodeId_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_ByteString_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_ExtensionObject_Read(SOPC_ExtensionObject *extObj, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_XmlElement_Write(const SOPC_XmlElement *xml, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Int32_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Double_Write(const double *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_StatusCode_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_UInt64_Read(uint64_t *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_StatusCode_Write(const SOPC_StatusCode *status, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_LocalizedText_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_DiagnosticInfo_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_String_Read(SOPC_String *str, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_EncodeableObject_EncodeToByteString(SOPC_EncodeableType *type, const void *srcValue, SOPC_ByteString *destByteString)
Encode an encodeable object of the given encodeable type into an OPC UA ByteString.
SOPC_ReturnStatus SOPC_DataValue_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_NodeId_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_UInt16_Read(uint16_t *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Int32_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Int16_Read(int16_t *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_UInt32_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_QualifiedName_Read(SOPC_QualifiedName *qname, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_String_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_String_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_UInt32_Write(const uint32_t *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Variant_WriteAux_Nested(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_DataValue_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_ExtensionObject_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_DataValue_ReadAux_Nested(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Guid_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Variant_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_DiagnosticInfo_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_QualifiedName_Write(const SOPC_QualifiedName *qname, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Float_Write(const float *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_ByteString_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Guid_Read(SOPC_Guid *guid, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Byte_Read(SOPC_Byte *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_DateTime_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_StatusCode_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Boolean_Write(const SOPC_Boolean *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_DiagnosticInfo_Write(const SOPC_DiagnosticInfo *diagInfo, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_SByte_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Double_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_DataValue_EncodingFlag
Definition sopc_encoder.h:59
@ SOPC_DataValue_NotGoodStatusCode
Definition sopc_encoder.h:61
@ SOPC_DataValue_NotZeroServerPico
Definition sopc_encoder.h:65
@ SOPC_DataValue_NotZeroSourcePico
Definition sopc_encoder.h:64
@ SOPC_DataValue_NotNullValue
Definition sopc_encoder.h:60
@ SOPC_DataValue_NotMinSourceDate
Definition sopc_encoder.h:62
@ SOPC_DataValue_NotMinServerDate
Definition sopc_encoder.h:63
SOPC_ReturnStatus SOPC_NodeId_Read(SOPC_NodeId *nodeId, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Guid_Write(const SOPC_Guid *guid, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_SByte_Read(SOPC_SByte *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_EncodeableObject_DecodeFromByteString(SOPC_EncodeableType *type, const SOPC_ByteString *srcByteString, void *destValue)
Decode an encodeable object of the given encodeable type from an OPC UA ByteString.
SOPC_ReturnStatus SOPC_Int16_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_DataValue_Read(SOPC_DataValue *dataValue, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_UInt16_Write(const uint16_t *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_ExpandedNodeId_Read(SOPC_ExpandedNodeId *expNodeId, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_LocalizedText_Write(const SOPC_LocalizedText *localizedText, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_DateTime_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Write_Array(SOPC_Buffer *msgBuf, const int32_t *const noOfElts, const void *const *eltsArray, size_t sizeOfElt, SOPC_EncodeableObject_PfnEncode *encodeFct, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_XmlElement_Read(SOPC_XmlElement *xml, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_ByteString_Write(const SOPC_ByteString *str, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_DecodeMsg_HeaderOrBody(SOPC_Buffer *buffer, SOPC_EncodeableType *msgEncType, void **encodeableObj)
SOPC_ReturnStatus SOPC_Int64_Write(const int64_t *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Variant_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_SByte_Write(const SOPC_SByte *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_LocalizedText_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Float_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_ExtensionObject_Write(const SOPC_ExtensionObject *extObj, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_ExpandedNodeId_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Variant_Write(const SOPC_Variant *variant, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Boolean_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_UInt64_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_MsgBodyType_Read(SOPC_Buffer *buf, SOPC_EncodeableType **receivedEncType)
SOPC_ReturnStatus SOPC_DiagnosticInfo_Read(SOPC_DiagnosticInfo *diagInfo, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_ExpandedNodeId_Write(const SOPC_ExpandedNodeId *expNodeId, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Byte_Write(const SOPC_Byte *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Int64_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Float_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_ExtensionObject_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Int32_Read(int32_t *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Boolean_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_UInt16_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_LocalizedText_EncodingFlag
Definition sopc_encoder.h:53
@ SOPC_LocalizedText_Locale
Definition sopc_encoder.h:54
@ SOPC_LocalizedText_Text
Definition sopc_encoder.h:55
SOPC_ReturnStatus SOPC_QualifiedName_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_XmlElement_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_LocalizedText_Read(SOPC_LocalizedText *localizedText, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_UInt32_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_SByte_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_DateTime_Write(const SOPC_DateTime *date, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Double_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Int64_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_DataValue_Write(const SOPC_DataValue *dataValue, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_NodeId_WriteAux(const void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Int16_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_NodeId_DataEncoding
Definition sopc_encoder.h:29
@ SOPC_NodeIdEncoding_Invalid
Definition sopc_encoder.h:38
@ SOPC_NodeIdEncoding_Guid
Definition sopc_encoder.h:34
@ SOPC_NodeIdEncoding_NamespaceUriFlag
Definition sopc_encoder.h:36
@ SOPC_NodeIdEncoding_String
Definition sopc_encoder.h:33
@ SOPC_NodeIdEncoding_ByteString
Definition sopc_encoder.h:35
@ SOPC_NodeIdEncoding_TwoBytes
Definition sopc_encoder.h:30
@ SOPC_NodeIdEncoding_ServerIndexFlag
Definition sopc_encoder.h:37
@ SOPC_NodeIdEncoding_FourBytes
Definition sopc_encoder.h:31
@ SOPC_NodeIdEncoding_Numeric
Definition sopc_encoder.h:32
SOPC_ReturnStatus SOPC_Int16_Write(const int16_t *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
const SOPC_BuiltInType_Encoding SOPC_BuiltInType_EncodingTable[SOPC_BUILTINID_MAX+1]
Table of all built-in type encoding. To be indexed with a SOPC_BuiltinId. Provides all the generic en...
SOPC_ReturnStatus SOPC_EncodeMsg_Type_Header_Body(SOPC_Buffer *buf, SOPC_EncodeableType *encType, SOPC_EncodeableType *headerType, void *msgHeader, void *msgBody)
SOPC_ReturnStatus SOPC_Guid_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_NodeId_Write(const SOPC_NodeId *nodeId, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_StatusCode_Read(SOPC_StatusCode *status, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Int64_Read(int64_t *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_UInt64_ReadAux(void *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
SOPC_ReturnStatus SOPC_Double_Read(double *value, SOPC_Buffer *buf, uint32_t nestedStructLevel)
enum _SOPC_ReturnStatus SOPC_ReturnStatus
Common enumerations for S2OPC.
Bytes buffer structure.
Definition sopc_buffer.h:38
Generic built-in type encoding. Provides all the generic service functions for encoding and decoding ...
Definition sopc_encoder.h:272
SOPC_EncodeableObject_PfnDecode * decode
Definition sopc_encoder.h:274
SOPC_EncodeableObject_PfnEncode * encode
Definition sopc_encoder.h:273
Each attribute in OPC UA has a DataValue caracterized by the following structure.
Definition sopc_builtintypes.h:385
This structure provides vendor specific diagnostic information.
Definition sopc_builtintypes.h:217
Encodeable object type structure definition. It provides all the services functions associated with t...
Definition sopc_encodeabletype.h:177
ExpandedNodeId allows the namespace to be specified explicitly as a string or with an index in the Se...
Definition sopc_builtintypes.h:207
An ExtensionObject is a container for any Structured DataTypes which cannot be encoded as one of the ...
Definition sopc_builtintypes.h:262
Definition sopc_builtintypes.h:163
Definition sopc_builtintypes.h:234
This structure describes a basic NodeID in OPC UA.
Definition sopc_builtintypes.h:189
Definition sopc_builtintypes.h:228
This structure provides string encapsulation.
Definition sopc_builtintypes.h:148
This structure provides variant encapsulation.
Definition sopc_builtintypes.h:374