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