libUEMF
A portable library for reading and writing WMF, EMF and EMF+ files
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
uemf_endian.h
Go to the documentation of this file.
1 
7 /*
8 File: uemf_endian.h
9 Version: 0.0.3
10 Date: 24-JUL-2012
11 Author: David Mathog, Biology Division, Caltech
12 email: mathog@caltech.edu
13 Copyright: 2012 David Mathog and California Institute of Technology (Caltech)
14 */
15 
16 #ifndef _UEMF_ENDIAN_
17 #define _UEMF_ENDIAN_
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
32 #ifdef WORDS_BIGENDIAN
33 #define U_BYTE_SWAP 1
34 #define U_IS_BE 1
35 #define U_IS_LE 0
36 #else
37 #define U_BYTE_SWAP 0
38 #define U_IS_BE 0
39 #define U_IS_LE 1
40 #endif
41 
42 #define U_XE 0
43 #define U_LE 1
44 #define U_BE 2
45 #define U_RP 4
46 #define U_XX 0xFF
47 
49 // prototypes
51 int U_emf_endian(char *contents, size_t length, int torev);
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
58 #endif /* _UEMF_ENDIAN_ */
int U_emf_endian(char *contents, size_t length, int torev)
Convert an entire EMF in memory from Big Endian to Little Endian.
Definition: uemf_endian.c:1623