TStream.Read
TStream
Introduces an abstract method responsible for reading from the stream.
function Read(var Buffer; Count: Longint): Longint; virtual; abstract;
Description
Each descendant stream object defines a Read method that reads data from its particular storage medium (such as memory or a disk file).
Read is used in cases where the number of bytes to read from the stream is not necessarily fixed. It attempts to read up to Count bytes into buffer and returns the number of bytes actually read.
All the other data-reading methods of a stream (ReadBuffer, ReadComponent) call Read to do their actual reading.
|