Jump to content

Conv endian t: Difference between revisions

From EDM2
Ak120 (talk | contribs)
 
Line 18: Line 18:
; 0xfeff : Use big endian
; 0xfeff : Use big endian
; 0xfffe : Use little endian
; 0xfffe : Use little endian
=== Example ===
<PRE>
typedef struct _conv_endian_rec {
  unsigned short      source;
  unsigned short      target;
} conv_endian_t;
</PRE>


[[Category:Data type]]
[[Category:Data type]]

Latest revision as of 02:40, 16 August 2017

conv_endian_t

Source about source and target endians.

Type

USHORT source
USHORT target

C declaration method

typedef struct

Fields

source
Source information.
target
Target information.

Comment

Each field can contain:

0x0000
Use system endian
0xfeff
Use big endian
0xfffe
Use little endian

Example

typedef struct _conv_endian_rec {
  unsigned short       source;
  unsigned short       target;
} conv_endian_t;