Skip to content
IsaacShelton edited this page Nov 13, 2022 · 6 revisions

machine/endian

machine/endian.adept contains endianness utilities.

Functions

  • func swapEndiannessShort(x short) short
  • func swapEndiannessUShort(x ushort) ushort
  • func swapEndiannessInt(x int) int
  • func swapEndiannessUInt(x uint) uint
  • func swapEndiannessLong(x long) long
  • func swapEndiannessULong(x ulong) ulong

Other Useful Definitions

The compiler defines some other useful definitions related to endianness.

Clone this wiki locally