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

From Serious Documentation
Jump to: navigation, search
 
Line 18: Line 18:
 
* <code>0x07</code>: {{Reserved|BYTEORDER.BIG_ENDIAN}}
 
* <code>0x07</code>: {{Reserved|BYTEORDER.BIG_ENDIAN}}
  
These are bit fields, so can be combined using the "|" operator if desired, for example <code>{{Reserved|BYTEORDER.SWAP8}}|{{Reserved|BYTEORDER.SWAP16}}</code> is, of course, the same as <code>{{Reserved|BYTEORDER.SWAP816}}</code>.
+
These are bit fields, so can be combined using the "|" operator if desired, for example {{Reserved|BYTEORDER.SWAP8}}|{{Reserved|BYTEORDER.SWAP16}} is, of course, the same as {{Reserved|BYTEORDER.SWAP816}}.

Latest revision as of 05:48, 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:

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.