[Overview][Types][Classes] |
Write data to the stream
Source position: iostream.pp line 33
public function TIOStream.Write( |
const Buffer; |
Count: LongInt |
):LongInt; override; |
Buffer |
|
Memory buffer containing the data to be written. |
Count |
|
Number of bytes to write. |
Number of bytes actually written.
Writechecks first whether the type of the stream allows writing (type is iosOutputor iosError). If not, it raises a EIOStreamErrorexception. If the stream can be written to, it calls the inherited Writeto actually read the data.
An EIOStreamErrorexception is raised if the stream does not allow writing.
|
Type of stream to create |
|
|
Read data from the stream. |