CryptoRtsByteStringInit2 (FUN)

FUNCTION CryptoRtsByteStringInit2 : RTS_IEC_RESULT

Initialize a byte string.

InOut:

Scope

Name

Type

Comment

Return

CryptoRtsByteStringInit2

RTS_IEC_RESULT

Input

pByteString

POINTER TO RtsByteString

Pointer to the RtsByteString to be initialized.

ui32BufferSize

UDINT

Buffersize needed for this byte string.

pBuffer

POINTER TO BYTE

Pointer to a optional static buffer. If NULL is passed the function will allocated ui32BufferSize bytes from the heap.

xEmptyBuffer

BOOL

Used for static buffers. If FALSE pByteString->ui32Lenght will be set to ui32BufferSize. Must be TRUE if pBuffer == NULL