OpcUaStackStartEncode (FUN)

FUNCTION OpcUaStackStartEncode : OpcUa_StatusCode

Initialize a UA binary encoder object. Use the FUNCTION in the following order:
  1. OpcUaStackStartEncode: This prepares the encoder object for writing binary data.
    1. Any of OpcUaStackEncodeValue, OpcUaStackEncodeGetPosition, OpcUaStackEncodeSetPosition: Use these functions to write the binary data.

    2. OpcUaStackFinishEncode: This deletes the encoder object. Do not call any other function with this handle.

InOut:

Scope

Name

Type

Comment

Return

OpcUaStackStartEncode

OpcUa_StatusCode

Input

pBuffer

POINTER TO OpcUa_Byte

Pointer to the buffer used to write the binary data.

bufferSize

__XWORD

Size of the buffer.

Output

encoder

OpcUa_Handle

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