-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.h
More file actions
48 lines (42 loc) · 790 Bytes
/
Copy pathtypes.h
File metadata and controls
48 lines (42 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#pragma once
#include <stdlib.h>
#include <stdint.h>
//Bools
typedef enum
{
Good,
Fail
} return_basic;
typedef enum
{
MEM_ERROR = -1,
FAILED_TO_OPEN_FILE = -2,
FAILED_TO_IMPORT_FILE = -3,
FAILED_TO_CREATE_OUTFILE = -4,
} global_errors;
typedef enum
{
BE = 0,
LE = 1
} endianness_flag;
typedef enum
{
KB = 1024,
MB = 1048576,
GB = 1073741824
} file_unit_size;
typedef enum
{
MAX_U8 = 0xff,
MAX_U16 = 0xffff,
MAX_U32 = 0xffffffff,
MAX_U64 = 0xffffffffffffffff,
} data_type_max;
typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
typedef int8_t s8;
typedef int16_t s16;
typedef int32_t s32;
typedef int64_t s64;