Internet Direct (Indy) Version 9.0.2 Beta
TIdTCPConnection.ReadInteger
Reads an integer value in the Indy buffer.

function ReadInteger(const AConvert: boolean): Integer;
Parameters
const AConvert: boolean = true
Indicates that the result should be converted from Internet to Intel byte-order. Default value is True.

Returns
Integer - Value read from the Indy buffer.

Description
ReadInteger is an Integer function that reads a 4-byte binary integer value from the Indy buffer. By default, the resulting Integer value is converted from Internet byte-order to Intel byte-order. This can be overridden by setting AConvert to False.

ReadInteger uses ReadBuffer to read and extract the integer value from the Indy buffer. ReadInteger uses the WSNToHL method from TIdStackWinsock to convert the integer value from Internet byte-order to Intel byte-order.