Sign in Join
FPDoc Onlineexperiment

LEtoN function

In unit System

Convert Little Endian-ordered integer to Native-ordered integer.

Declaration

pascal
function LEtoN(const AValue: SmallInt): SmallInt

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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.