TWindowedStream.Write function
Read data to the stream.
Declaration
function Write(const aBuffer; aCount: LongInt): LongInt; overrideArguments
aBuffer | Buffer from which to write data in the stream. |
aCount | Maximum number of bytes to be written. |
Function result
Number of written bytes.
Description
Write attempts to write data to the stream. It will attempt to
restore the source stream position if it was changed since the last read,
write or seek operation. It then attempts to write
ACount bytes
from
ABuffer to the source stream and returns the number of actually
written bytes.Errors
TWindowedStream.Write will raise an
EWriteError
exception if an attempt is made to write more bytes than will fit in the
window, even if the source stream has more room available.See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
