Difference between revisions of "SHIP:Data Types:ByteOrder"

From Serious Documentation
Jump to: navigation, search
(Created page with "The {{DataType|ByteOrder}} is a psuedo-type, actually a {{DataType|Byte}} with the following possible values: * <code>0x00: BYTEORDER.BIG_ENDIAN</code> * <code>0x01: BYTEORDE...")
 
Line 1: Line 1:
 +
*'''[[SHIP:Node|Node Home]]'''
 +
*'''[[SHIP:Data_Types|All Data Types]]'''
 +
 +
{{DataTypeTableStart|}}
 +
|-
 +
|<onlyinclude>{{DataType|ByteOrder}}||Determines a byte flipping order in a number</onlyinclude>
 +
|}
 +
 
The {{DataType|ByteOrder}} is a psuedo-type, actually a {{DataType|Byte}} with the following possible values:
 
The {{DataType|ByteOrder}} is a psuedo-type, actually a {{DataType|Byte}} with the following possible values:
  

Revision as of 05:43, 5 June 2015

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.