Name
EndianSwap -- swap byte order of a value (V6.0)
Synopsis
result = EndianSwap(val, bits)
Function
This function swaps the byte order in val. The additional parameter bits specifies how many bits should be taken into account and can be either 16 or 32.

Inputs
val
input value
bits
operation length in bits
Results
result
swapped bytes
Example
DebugPrint(HexStr(EndianSwap($ABCD, 16)))
This prints $CDAB.

Show TOC