FROM_MEMORY (FUN)ΒΆ

FUNCTION FROM_MEMORY : IString

Returns an IString instance out of a desired memory

InOut:

Scope

Name

Type

Initial

Comment

Return

FROM_MEMORY

IString

Input

pbyMemory

POINTER TO BYTE

Pointer to the first byte of memory block

udiSize

UDINT

Size of the memory block in bytes. In case of UTF16 the size must be a straight number because UTF16 is based on WORDs.

eEncoding

ENCODING

ENCODING.UTF8

Type of encoding, default value is utf8

itfString

IString

Result, in the end the same instance like return value of this function

Output

eErrorID

ERROR

Check error output value for better diagnostics