Internet Direct (Indy)
Home
PreviousUpNext
TIdIOHandler.ReadInteger Method

Reads the data type from the IOHandler connection.

Pascal
function ReadInteger(
    AConvert: Boolean = True
): Integer;
Parameters 
Description 
AConvert 
Indicates the order of bytes for the ordinal data type must be converted. 

Integer - Data type read from the the IOHandler connection.

ReadInteger is an Integer function used to read the ordinal data type from the data source for the IOHandler connection. ReadInteger calls ReadBytes to perform the read request, and calls BytesToInteger to convert the byte values to the ordinal data type. 

AConvert indicates that the byte order in the return value should be converted from the Network byte order to the host-specific byte order required for the data type. GStack is used to access the TIdStack.NetworkToHost method for the byte order conversion. 

Use other methods to get a specific data type from the IOHandler connection, including: 

 

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.