Sign in Join
FPDoc Onlineexperiment

TNullStream.Write function

Member of TNullStreampublicIn unit NullStream

Write to stream.

Declaration

pascal
function Write(const Buffer; Count: LongInt): LongInt; override

Arguments

Buffer

Buffer to write data from (ignored).

Count

Max number of bytes to write.

Function result

Always equal to Count.

Description

Write simulates a write operation: no data is actually written from Buffer, but the size of the stream is enlarged if the amount of bytes Count and current position in the stream make this necessary.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.