Yt_RW_ByteBufferStruct
Yt_RW_ByteBufferStruct: STRUCT
| Element | Data Type | Description | Usage |
|---|---|---|---|
| BufferSize |
UINT | Copy of top level FB 'BufferSize' VAR_INPUT | MyBufferStruct.BufferSize |
| BufferRead |
BOOL | Flag indicating if the buffer has been read |
MyBufferStruct.BufferRead |
| Character | Yt_ByteArray16384 |
Array of characters read from file. Will only be filled up to the associated FB BufferSize VAR_INPUT | MyBufferStruct.Character |
| CharPointer |
UINT | Indicates where in the 'Char' buffer the next processing (by ReadLine or ReadValue) will take place | MyBufferStruct.CharPointer |
| CharsRead |
UINT | Indicates how many character have been read: will be the same size as BufferSize less the characters of a partial line | MyBufferStruct.CharsRead |
| CharBuffer | UINT | CharBuffer may be less than CharsRead because certain chars are filtered out, like TAB |
MyBufferStruct.CharBuffer |
| FilePosition | UDINT | The location in the file which is the beginning of the next read or write |
MyBufferStruct.FilePosition |