Topic Path: Symbol Reference > Classes > TIdIOHandler Class > TIdIOHandler Methods > WriteBufferFlush Method > WriteBufferFlush Method (Integer)
ContentsIndexHome
PreviousUpNext
TIdIOHandler.WriteBufferFlush Method (Integer)

Writes data in the write buffering mechaism to the IOHandler connection.

procedure WriteBufferFlush(
    AByteCount: Integer
); virtual; overload;
Parameters 
Description 
AByteCount 
Number of bytes to write from the buffer to the IOHandler. The default value is -1. 

WriteBufferFlush is a virtual procedure used to force any existing data in the write buffering mechanism to be written to the connection for the IOHandler. 

WriteBufferFlush call WriteBytes using existing data in WriteBuffer. 

AByteCount indicates the number of bytes to write from the buffer to the IOHandler. The default value is -1, and indicates that all data should be written. The number of bytes in AByteCount is removed from WriteBuffer prior to completion of the write request. 

Use WriteBufferOpen to enable write buffering for the IOHandler. 

Use WriteBufferClose to disable write buffering for the IOHandler.

TIdIOHandler.WriteBytes 

TIdIOHandler.WriteBuffer 

TIdIOHandler.WriteBufferOpen 

TIdIOHandler.WriteBufferClose

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.