Dynalib Utils
ICacheConst.h
Go to the documentation of this file.
1 //
2 // Created by Ken Kopelson on 4/05/18.
3 //
4 
5 #ifndef ICACHECONST_H
6 #define ICACHECONST_H
7 
8 #include "IndexConfig.h"
9 #include "DynaArray.h"
10 #include "DynaHashMap.h"
11 
12 #define CHAR_BYTES sizeof(char) // 1 byte
13 #define SHORT_BYTES sizeof(short) // 2 bytes
14 #define UUID_BYTES 16
15 #define STR_BYTES 255
16 
17 #ifdef USE_LONG
18  #define INDEX_BYTES sizeof(int64_t) // 8 bytes
19  typedef int64_t index_t;
20 #else
21  #define INDEX_BYTES sizeof(int32_t) // 4 bytes
22  typedef int32_t index_t;
23 #endif
24 
25 MAKE_ARRAYTYPE_DEF(index_t, IndexRef);
26 
27 #endif //ICACHECONST_H
MAKE_ARRAYTYPE_DEF(index_t, IndexRef)
int64_t index_t
Definition: ICacheConst.h:19