System.Classes.TCustomMemoryStream.Memory

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Memory: Pointer read FMemory;

C++

__property void * Memory = {read=FMemory};

Properties

Type Visibility Source Unit Parent
property public
System.Classes.pas
System.Classes.hpp
System.Classes TCustomMemoryStream

Description

Provides direct access to the memory pool allocated for the memory stream.

Use Memory to get access to the memory for the stream. The memory for the stream holds the data that is being transferred by means of the memory stream. Size is the number of bytes of Memory that were allocated, and Position is the current position within Memory.

Note: Memory is a read-only property. Memory can be used to change the contents of the memory, but to set the actual memory the stream works with, descendants of TCustomMemoryStream must assign a pointer to a memory buffer by calling the SetPointer method.

See Also