Internet Direct (Indy)
Home
PreviousUpNext
TIdBuffer.Clear Method

Discards all existing data in the internal storage for the buffer.

Pascal
procedure Clear;

Clear is a procedure used to remove all existing data in the internal storage for the buffer. Clear sets the length of the internal storage for the buffer to 0 (zero). 

Clear is called from both the constructor and destructor for the object instance. 

Use Remove to discard a specified number of bytes in the internal storage for the buffer. 

Use Extract to retrieve data from the buffer for subsequent use prior to removal from the internal storage.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.