Internet Direct (Indy) Version 9.0.1 Beta
TIdCardinalBytes
Provides alternate representations of the bytes in a Cardinal value.

TIdCardinalBytes = record
  case Integer of
    0: (Byte1: Byte;
        Byte2: Byte;
        Byte3: Byte;
        Byte4: Byte;);
    1: (Whole: Cardinal;);
  end;
Description
TIdCardinalBytes is a record type that provides alternate representations of the bytes in a Cardinal value.

Byte1, Byte1, Byte3, and Byte4 are Byte members that represent the individual 8-bit values in the Cardinal data type.

Whole is a Cardinal member that represents the 32-bit value for the data type.

TIdCardinalBytes is the structure used to assist in converting values in TIdDNSResolver.DecodeReplyPacket and TIdDecoder4to3.DecodeToStream.