[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'System' (#rtl)

SwapEndian

Swap endianness of the argument

Declaration

Source position: systemh.inc line 899

function SwapEndian(

  const AValue: SmallInt

):SmallInt;

function SwapEndian(

  const AValue: Word

):Word;

function SwapEndian(

  const AValue: LongInt

):LongInt;

function SwapEndian(

  const AValue: DWord

):DWord;

function SwapEndian(

  const AValue: Int64

):Int64;

function SwapEndian(

  const AValue: QWord

):QWord;

Description

SwapEndian will swap the endianness of the bytes in its argument.

Errors

None.

See also

hi

  

Return high byte/word/nibble of value.

lo

  

Return low nibble/byte/word of value.

swap

  

Swap high and low bytes/words of a variable

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

LEToN

  

Convert Little Endian-ordered integer to Native-ordered integer


Documentation generated on: May 14 2021