2009-12-04 16:05:20 +01:00
|
|
|
// 2 MEM2 allocators, one for general purpose, one for covers
|
|
|
|
// Aligned and padded to 32 bytes, as required by many functions
|
|
|
|
|
|
|
|
#ifndef __MEM2_HPP
|
|
|
|
#define __MEM2_HPP
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2010-02-09 11:59:55 +01:00
|
|
|
extern "C"
|
|
|
|
{
|
2009-12-04 16:05:20 +01:00
|
|
|
#endif
|
|
|
|
|
2010-02-09 11:59:55 +01:00
|
|
|
void *MEM2_alloc(unsigned int s);
|
|
|
|
void *MEM2_realloc(void *p, unsigned int s);
|
|
|
|
void MEM2_free(void *p);
|
|
|
|
unsigned int MEM2_usableSize(void *p);
|
2009-12-04 16:05:20 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
|
|
|
|
void MEM2_init(unsigned int mem2Size);
|
|
|
|
void MEM2_cleanup(void);
|
|
|
|
void MEM2_takeBigOnes(bool b);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // !defined(__MEM2_HPP)
|