RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMemoryStream.Clear Method

Frees the memory buffer, discarding all data associated with the memory stream.

Pascal
procedure Clear;
C++
__fastcall Clear();

Use Clear to empty the memory buffer for the memory stream and free all associated memory. In addition to freeing the memory associated with the memory buffer, Clear:

  • Sets the Memory property to nil (Delphi) or NULL (C++).
  • Sets the Position property to 0.
  • Sets the Size property to 0.

 

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