[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Reads data from the stream to a buffer and returns the number of bytes read.
Source position: classesh.inc line 593
public function TStream.Read( |
var Buffer; |
Count: LongInt |
):LongInt; virtual; abstract; |
Readattempts to read Countfrom the stream to Bufferand returns the number of bytes actually read.
This method should be used when the number of bytes is not determined. If a specific number of bytes is expected, use TSTream.ReadBufferinstead.
Readis an abstract method that is overridden by descendent classes to do the actual reading.
Descendent classes that do not allow reading from the stream may raise an exception when the Readis used.
|
Writes data from a buffer to the stream and returns the number of bytes written. |
|
|
Reads data from the stream to a buffer |