[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Classes' (#rtl)

TStringStream.SetSize

Sets the size of the stream.

Declaration

Source position: classesh.inc line 907

protected procedure TStringStream.SetSize(

  NewSize: LongInt

); override;

Description

SetSize sets the size of the stream to newsize. It does this by setting the size of the ansisting in which the stream is stored. NewSize can have any value greater than or equal to zero.

Errors

In case there is not enough memory, an exception may be raised.

See also

TStream.Size

  

The current size of the stream.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.