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

# TStringStream.SetSize

Sets the size of the stream.

## Declaration

`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.