System.Classes.TMemoryStream.Clear
Delphi
procedure Clear;
C++
void __fastcall Clear();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Classes.pas System.Classes.hpp |
System.Classes | TMemoryStream |
Description
Frees the memory buffer, discarding all data associated with the memory stream.
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.