[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Read data from the file to a buffer in memory.
Source position: objects.pp line 351
procedure TBufStream.Read( |
var Buf; |
Count: LongInt |
); virtual; |
If the Stream is open and the stream status is stOKthen Readwill read Countbytes from the stream and place them in Buf.
Readwill first try to read the data from the stream's internal buffer. If insufficient data is available, the buffer will be filled before contiunuing to read. This process is repeated until all needed data has been read.
For an example, see TStream.Read.
In case of an error, Statusis set to StReadError, and ErrorInfogets the OS specific error, or 0 when an attempt was made to read beyond the end of the stream.
|
Read data from stream to buffer. |
|
|
Write data to the file from a buffer in memory. |