Input structure for ReadItem and ReadArgs
Source position: amigados.pas line 2031
type TCSource = record |
||
CS_Buffer: PChar; |
|
Data source |
CS_Length: LongInt; |
|
Length of string |
CS_CurChr: LongInt; |
|
|
end; |
The TCSource data structure defines the input source for ReadItem as well as the ReadArgs call. It is a publicly defined structure which may be used by applications which use code that follows the conventions defined for access.
To initialize a TCSource, you set TCSource.CS_Buffer to a string which is used as the data source, and set CS_Length to the number of characters in the string. Normally CS_CurChr should be initialized to 0, or left as it was from prior use as a TCSource.
When passed to the dos.library functions, the value passed as PCSource is defined as follows:
if PCSource = nil then // Use buffered IO as data source else // Use PCSource for input character stream