RAD Studio VCL Reference
TStream.Read Method

Introduces an abstract or pure virtual method responsible for reading from the stream.

function Read(var Buffer; Count: Longint): Longint; virtual; abstract;
virtual __fastcall Longint Read( Buffer, Longint Count) = 0;

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. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!