TStringReader.Create constructor
Create a new instance of
TStreamReader from a string.
Declaration
constructor Create(const AString: AnsiString; ABufferSize: Integer)
; virtual
constructor Create(const AString: AnsiString); virtualArguments
AString | String to read data from. |
ABufferSize | Size for the read buffer. |
Description
Create initializes a
TStringReader instance using the provided
AString.
It will allocate a buffer of
ABufferSize bytes for faster reading of data.
If no buffer size is specified,
BUFFER_SIZE will be used.
If the
ABufferSize argument is less than
MIN_BUFFER_SIZE, then
MIN_BUFFER_SIZE bytes will be used.
Errors
If
AStream is
Nil, an
EArgumentException
exception will be raised.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
