EncodeBOM (FUN)ΒΆ

FUNCTION EncodeBOM : UDINT

Writes into pbyData (which must be large enough) a BOM that matches the ENCODING
It returns the number of bytes written.
InOut:

Scope

Name

Type

Comment

Return

EncodeBOM

UDINT

Input

eEncoding

ENCODING

Encoding type of the BOM

pbyData

POINTER TO BYTE

Pointer to the first byte in memory

udiSize

UDINT

Size of the memory in bytes

Output

eErrorID

ERROR

Check error output value for better diagnostics