Class AStandardInputStream
Unit
classwork
Declaration
type AStandardInputStream = class(AStream)
Description
This class allows access to stdin as though it was a file stream. The class does not support writing or seeking and will fail silently if these operations are attempted. The primary reason for this class to exist is to allow console input to be used by any class that supports reading from an arbitrary stream.
Note that if you want to read text from this stream, you must create an instance of ATextInputStream that wraps around it.
Hierarchy
Overview
Fields
Methods
Description
Fields
|
myPosition: TStreamOffset; |
Stores the current position within the stream
|
Methods
|
function init: boolean; override; |
Initializer
|
|
function read(const count: TStreamIOSize; var dest): TStreamIOSize; override; |
Read count bytes from the stream and store them in dest . See AStream.read for more information on this method.
Returns
The total number of bytes read from the stream. |
|
function write(const count: longword; const source): TStreamIOSize; override; |
Write count bytes from source to the stream.
This method fails silently for this class and will always return zero (0).
|
|
function length: TStreamLength; override; |
Retrieve the size of the stream, in bytes. This value is simply the number of bytes that have been read from the stream since it was created.
|
Generated by PasDoc 0.13.0 on 2015-06-23 19:40:11
|