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
Methods:
Structure:
- BytesToEnd (Method)
- Capacity (Method)
- CopyContent (Method)
- Equals (Method)
- Freeze (Method)
- GetByte (Method)
- GetData (Method)
- GetDataPointerAt (Method)
- GetDataPointerAtPosition (Method)
- GetNBytes (Method)
- GetNBytesReverse (Method)
- GetNWords (Method)
- GetWord (Method)
- Init (Method)
- Len (Method)
- PutByte (Method)
- PutNBytes (Method)
- PutNBytesReverse (Method)
- PutNWords (Method)
- PutWord (Method)
- PutWordAt (Method)
- Rewind (Method)
- SetLen (Method)
- SetPos (Method)
- SetPosToEnd (Method)