1 #ifndef __CORETYPES_H__
2 #define __CORETYPES_H__
8 #include <streams/file_stream_transforms.h>
11 #define ARRAY_LENGTH(x) (sizeof(x)/sizeof(x[0]))
13 typedef uint64_t UINT64;
14 typedef uint32_t UINT32;
15 typedef uint16_t UINT16;
16 typedef uint8_t UINT8;
18 typedef int64_t INT64;
19 typedef int32_t INT32;
20 typedef int16_t INT16;
23 #define core_file FILE
24 #define core_fopen(file) fopen(file, "rb")
25 #define core_fseek fseek
26 #define core_fread(fc, buff, len) fread(buff, 1, len, fc)
27 #define core_fclose fclose
28 #define core_ftell ftell
29 static size_t core_fsize(core_file *f)
33 fseek(f, 0, SEEK_END);
35 fseek(f, p, SEEK_SET);