Internet Direct (Indy) Version 9.0.1 Beta
TIdTCPConnection.ReadSmallInt
Reads an small integer value from the connection.

function ReadSmallInt(const AConvert: boolean): SmallInt;
Parameters
const AConvert: boolean = true
Convert the numeric from Network to Host representation. Default value is True.

Returns
SmallInt - Value read from the Indy buffer.

Description
ReadSmallInt is a SmallInt function used to read an integer value, in the range 0 to 255, from the connection. ReadSmallInt uses ReadBuffer to get the SmallInt value from the Indy read buffer.

AConvert indicates that the protocol stack WSNToHs method should be used to convert the numeric value from Network byte-order to Host-specific byte-order.