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

# TStream.SetSize

Sets the size of the stream

## Declaration

`protected procedure TStream.SetSize(`
`NewSize: LongInt`
`); virtual; overload; procedure TStream.SetSize(`
`NewSize: Int64`
`); virtual; overload; procedure TStream.SetSize(`
`NewSize: LongInt`
`); virtual;`

## Description

SetSize is the write handler for the TStream.Size property. The TStream implementation of SetSize does nothing, but descendent classes may override this methods to allow programmers to set the size of the stream.

## See also

TStream.GetSize
TStream.Size |  | The current size of the stream.