[Overview][Constants][Classes][Index] |
Create a new instance of TStreamReader from a string
Source position: streamex.pp line 133
public constructor TStringReader.Create( |
const AString: string; |
ABufferSize: Integer |
); virtual; |
const AString: string |
); virtual; |
AString |
|
String to read data from |
ABufferSize |
|
Size for the read buffer |
AString |
|
String to read data from |
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.
If AStream is Nil, an #rtl.sysutils.EArgumentException exception will be raised.
|
Destroy the TStreamReader instance. |
|