BlitzMax Extended  0.8.17
Pushing Blitz to the Max.
blitz_memory.h
Go to the documentation of this file.
1 
12 #ifndef BLITZ_MEMORY_H
13 #define BLITZ_MEMORY_H
14 
15 #include "_common.h"
16 
17 BB_BEGIN_DECLS
18 
19 #define BBMEM_ALIGNSIZE 16
20 #define BBMEM_ALIGNMASK (BBMEM_ALIGNSIZE - 1)
21 
22 #define BBMEM_MAX_ALLOCSIZE (BBSIZE_MAX - BBMEM_ALIGNSIZE - 4)
23 
35 void* bbMemAlloc(BBInt size) __attribute__ ((malloc));
36 
44 void bbMemFree(void *mem);
45 
68 void* bbMemExtend(void *mem, BBInt size, BBInt new_size);
69 
80 void bbMemClear(void *dst, BBInt size);
81 
91 void bbMemCopy(void *dst, const void *src, BBInt size);
92 
101 void bbMemMove(void *dst, const void *src, BBInt size);
102 
103 BB_END_DECLS
104 
105 #endif // BLITZ_MEMORY_H