1 #ifndef _WIMLIB_TYPES_H
2 #define _WIMLIB_TYPES_H
4 #include "wimlib_tchar.h"
5 #include "wimlib/compiler.h"
12 /* Unsigned integer types of exact size in bits */
18 /* Signed integer types of exact size in bits */
24 /* Unsigned little endian types of exact size */
25 typedef uint8_t _bitwise_attr le8;
26 typedef uint16_t _bitwise_attr le16;
27 typedef uint32_t _bitwise_attr le32;
28 typedef uint64_t _bitwise_attr le64;
30 /* Signed little endian types of exact size (declare as unsigned to avoid sign
31 * extension on big-endian architectures) */
32 typedef uint8_t _bitwise_attr sle8;
33 typedef uint16_t _bitwise_attr sle16;
34 typedef uint32_t _bitwise_attr sle32;
35 typedef uint64_t _bitwise_attr sle64;
37 /* Unsigned big endian types of exact size */
38 typedef uint8_t _bitwise_attr be8;
39 typedef uint16_t _bitwise_attr be16;
40 typedef uint32_t _bitwise_attr be32;
41 typedef uint64_t _bitwise_attr be64;
45 /* A pointer to 'utf16lechar' indicates a UTF-16LE encoded string */
46 typedef le16 utf16lechar;
48 #ifndef WIMLIB_WIMSTRUCT_DECLARED
49 typedef struct WIMStruct WIMStruct;
50 # define WIMLIB_WIMSTRUCT_DECLARED