[Overview][Constants][Classes][Index] Reference for unit 'streamex' (#fcl)

TStringReader.Create

Create a new instance of TStreamReader from a string

Declaration

Source position: streamex.pp line 133

public constructor TStringReader.Create(

  const AString: string;

  ABufferSize: Integer

); virtual;

constructor TStringReader.Create(

  const AString: string

); virtual;

Arguments

AString

  

String to read data from

ABufferSize

  

Size for the read buffer

Arguments

AString

  

String to read data from

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 #rtl.sysutils.EArgumentException exception will be raised.

See also

TStreamReader.Destroy

  

Destroy the TStreamReader instance.

TStream


Documentation generated on: May 14 2021