Topic Path: Symbol Reference > Classes > TIdIOHandler Class > TIdIOHandler Methods > Write Method > Write Method (Integer, Boolean)
TIdIOHandler.Write Method (Integer, Boolean)

Write the specified values to the IOHandler.

procedure Write(
    AValue: Integer; 
    AConvert: Boolean = True
); overload;
Value to write to the IOHandler.
Indicates the order of bytes for the ordinal data type must be converted. 

Write is an overloaded method in TIdIOHandler used to write various data types from the indicated source to the IOHandler. Write can use the Indy write buffering mechanism when it has been enabled. 

When AConvert is True, the byte order for AValue is converted from its host-specific byte order to Network byte order using the HostToNetwork method in GStack

Write calls WriteBytes to copy the converted value to the IOHandler. 

Call WriteBufferOpen to enable write buffer for the IOHandler. 

Call WriteBufferClose to disable write buffer for the IOHandler.

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