RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomMemoryStream.Memory Property

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

Pascal
property Memory: Pointer;
C++
__property void * Memory;

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.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!