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

# TCustomMemoryStream.SetPointer

Sets the internal memory pointer and size of the memory block.

## Declaration

`protected procedure TCustomMemoryStream.SetPointer(`
`Ptr: Pointer;`
`ASize: LongInt`
`);`

## Description

SetPointer updates the internal memory pointer and the size of the memory area pointed to.

Descendent memory streams should call this method whenever they set or reset the memory the stream should read from or write to.

## See also

TCustomMemoryStream.Memory |  | Pointer to the data kept in the memory stream.
TStream.Size |  | The current size of the stream.