Skip to content

TWindowedStream.Read

Read data from the stream.

Declaration

Source position: streamex.pp line 323

public 
function TWindowedStream.Read(var aBuffer; aCount: LongInt) : LongInt
                             ;  override;

Description

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.

See also

Name Description
TWindowedStream.Write Read data to the stream.
TWindowedStream.Seek Reposition the stream.