LEtoN

Convert Little Endian-ordered integer to Native-ordered integer

Declaration

Source position: systemh.inc line 1001

  function LEtoN(const AValue: SmallInt) : SmallInt;
  function LEtoN(const AValue: Word) : Word;
  function LEtoN(const AValue: LongInt) : LongInt;
  function LEtoN(const AValue: DWord) : DWord;
  function LEtoN(const AValue: Int64) : Int64;
  function LEtoN(const AValue: QWord) : QWord;

Description

LEToN will rearrange the bytes in a Little-Endian number to the native order for the current processor. That is, for a little-endian processor, it will do nothing, and for a big-endian processor, it will invert the order of the bytes.

See also

Name Description
BEtoN Convert Big Endian-ordered integer to Native-ordered integer
NtoBE Convert Native-ordered integer to a Big Endian-ordered integer
NtoLE Convert Native-ordered integer to a Little Endian-ordered integer