[Overview][Constants][Types][Classes][Procedures and functions][Variables] | Reference for unit 'Classes' (#rtl) |
Reads data from the stream to a buffer and returns the number of bytes read.
Source position: classesh.inc line 601
public function TStream.Read( |
var Buffer; |
Count: LongInt |
):LongInt; virtual; abstract; |
Read attempts to read Count from the stream to Buffer and 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.ReadBuffer instead.
Read is 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 Read is used.
|
Writes data from a buffer to the stream and returns the number of bytes written. |
|
|
Reads data from the stream to a buffer |
No notes exist for this page yet.