OpcUaStackStartDecode (FUN)

FUNCTION OpcUaStackStartDecode : OpcUa_StatusCode

Initialize a UA binary decoder object. Use the FUNCTION in the following order:
  1. OpcUaStackStartDecode: This prepares the decoder object for reading binary data.

  2. Any of OpcUaStackDecodeValue, OpcUaStackDecodeGetPosition, OpcUaStackDecodeSetPosition: Use these functions to write the binary data.

  3. OpcUaStackFinishDecode: This deletes the decoder object. Do not call any other function with this handle.

InOut:

Scope

Name

Type

Comment

Return

OpcUaStackStartDecode

OpcUa_StatusCode

Input

pBuffer

POINTER TO OpcUa_Byte

Pointer to the buffer used to read the binary data from.

bufferSize

__XWORD

Size of the buffer.

Output

decoder

OpcUa_Handle

Handle the decoder object. Use as input to the other functions.