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

# TCustomMemoryStream.Memory

Pointer to the data kept in the memory stream.

## Declaration

`public property TCustomMemoryStream.Memory: Pointer read FMemory;`

## Description

Memory points to the memory area where stream keeps it's data. The property is read-only, so the pointer cannot be set this way.

Remark: | Do not write to the memory pointed to by Memory, since the memory content may be read-only, and thus writing to it may cause errors.

## See also

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