SHIP:Data Types:ByteOrder

From Serious Documentation
Revision as of 05:43, 5 June 2015 by Admin (talk | contribs)
Jump to: navigation, search
Data Type Description
ByteOrder Determines a byte flipping order in a number

The ByteOrder is a psuedo-type, actually a Byte with the following possible values:

  • 0x00: BYTEORDER.BIG_ENDIAN
  • 0x01: BYTEORDER.SWAP8
  • 0x02: BYTEORDER.SWAP16
  • 0x03: BYTEORDER.SWAP816
  • 0x04: BYTEORDER.SWAP32
  • 0x05: BYTEORDER.SWAP832
  • 0x06: BYTEORDER.SWAP1632
  • 0x07: BYTEORDER.BIG_ENDIAN

These are bit fields, so can be combined using the "|" operator if desired, for example BYTEORDER.SWAP8|BYTEORDER.SWAP16 is, of course, the same as BYTEORDER.SWAP816.