Delphi Database, Delphi Components from ComponentAce
Products Download Order Contact us
/img/help/home.gif

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.

        © 2003 - 2024 ComponentAce  | .net zip component | barcode for .net | delphi zip component | delphi database Dec 22, 2024