System.Classes.TWriter.Position

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property Position: Longint read GetPosition write SetPosition;

C++

__property int Position = {read=GetPosition, write=SetPosition, nodefault};

Properties

Type Visibility Source Unit Parent
property public
System.Classes.pas
System.Classes.hpp
System.Classes TWriter

Description

Represents the current writing position in the associated stream.

Position is used internally by writer objects to indicate the current writing position in the stream.

The value of Position will be inside the most recent buffer block read or the next block to be written. Thus, for writing, Position will generally be less than the stream's Position. When Position is set to a location outside the current buffer, the writer's buffer is flushed to the stream.

See Also