System.Classes.TFiler.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(Stream: TStream; BufSize: Integer);

C++

__fastcall TFiler(TStream* Stream, int BufSize);

Properties

Type Visibility Source Unit Parent
constructor public
System.Classes.pas
System.Classes.hpp
System.Classes TFiler

Description

Creates a filer object.

Call Create to instantiate a filer descendant at run time, if necessary. It is seldom necessary to directly create a filer object because the methods and routines that use it automatically create filers.

Create allocates memory for a filer object, and associates it with the stream passed in through the Stream parameter, with a buffer of BufSize dimension.

BufSize is the internal buffer dimension used when opening the specified stream. BufSize is internally used by the derived TReader and TWriter to keep track of the size of the input/output buffer. A buffer too small or too large will affect performance. A common value for BufSize is in the range from 1024 through 32768.

See Also