[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Reads data from the stream to a buffer
Source position: classesh.inc line 597
public procedure TStream.ReadBuffer( |
var Buffer; |
Count: LongInt |
); |
ReadBufferreads Countbytes of the stream into Buffer. If the stream does not contain Countbytes, then an exception is raised.
ReadBuffershould be used to read in a fixed number of bytes, such as when reading structures or the content of variables. If the number of bytes is not determined, use TStream.Readinstead. ReadBufferuses Readinternally to do the actual reading.
If the stream does not allow to read Countbytes, then an exception is raised.
|
Reads data from the stream to a buffer and returns the number of bytes read. |
|
|
Writes data from the stream to the buffer |