Endianness

public enum Endianness

Endianness refers to the sequential order in which bytes are arranged into larger numerical values when stored in memory or when transmitted over digital links.

  • The endianness of the machine running this program.

    Declaration

    Swift

    public static let host: Endianness
  • big

    big endian, the most significat byte (MSB) is at the lowest address

    Declaration

    Swift

    case big
  • little endian, the least significat byte (LSB) is at the lowest address

    Declaration

    Swift

    case little