ByteBuffer (FB)

FUNCTION_BLOCK ByteBuffer

Buffer to work with fixed size byte arrays.

ByteBuffer does have a Capacity() fixed during Init().

It could be written to using the Put*() methods, updating Len() and the position (uiPosition).

It could be read using the Get*() methods, updating the position (uiPosition).

Position could be set from begin (0) to end (Len() -1).

Rewind() does set uiPosition to begin.

Freeze() make subsequent Put*() calls be ignored - this is reset at Init().

InOut:

Scope

Name

Type

Initial

Output

uiPosition

UINT

0