[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Objects' (#rtl)

TStream.Flush

Flush the stream data from the buffer, if any.

Declaration

Source position: objects.pp line 286

procedure TStream.Flush; virtual;

Description

Flush is an abstract method that should be overridden by descendent objects. It serves to enable the programmer to tell streams that implement a buffer to clear the buffer.

for an example, see TBufStream.Flush.

Errors

None.

See also

TStream.Truncate

  

Truncate the stream size on current position.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.