Read data from the stream.
Source position: streamex.pp line 321
public function TWindowedStream.Read( |
var aBuffer; |
aCount: LongInt |
):LongInt; override; |
aBuffer |
|
Buffer into which to read the data. |
aCount |
|
Maximum number of bytes to be read. |
Number of read bytes.
Read attempts to read data from the stream. It will attempt to restore the source stream position if it was changed since the last read, write or seek operation. It then attempts to read ACount bytes from the source stream into ABuffer and returns the number of actually read bytes. TWindowedStream.Read will only read as much data as the window allows, even if the source stream has more data available.
|
Read data to the stream. |
|
|
Reposition the stream. |