DecodeRune (FUN)ΒΆ

FUNCTION DecodeRune : RUNE

Unpacks the first UTF-16 encoding in pbyData and returns the rune and the length of the encoding in bytes.

InOut:

Scope

Name

Type

Initial

Return

DecodeRune

RUNE

Input

pbyData

POINTER TO BYTE

udiSize

UDINT

xHostByteOrder

BOOL

TRUE

Output

udiLength

UDINT