Swap

String = Swap ( String [ , Endianness ] ) String = Swap$ ( String [ , Endianness ] )

Since 3.1

Reverse the contents of the String string according to Endianness.

  • If Endianness is not specified, then the string is always swapped.

  • If Endianness is gb.BigEndian or gb.LittleEndian, then the string is swapped only if Endianness is different from the system endianness as returned by System.ByteOrder.

Use this function with the MkBool, MkInt... family, so that you can ensure the endianness of the data you create.

See also