Go to the source code of this file.
Functions | |
void * | memAllocBuf (const size_t netSize, size_t *const grossSize) |
void * | memReallocBuf (void *const oldBuf, const size_t netSize, size_t *const grossSize) |
void | memFree (void *memory, int) |
Free a element allocated by memAllocate() More... | |
void * | memAllocString (const size_t netSize, size_t *const grossSize) |
void | memFreeString (size_t, void *memory) |
void * | memAllocRigid (const size_t netSize) |
void | memFreeRigid (void *const buf, size_t) |
void | memFreeBuf (size_t, void *const buf) |
static void | myFree (void *const buf) |
FREE * | memFreeBufFunc (size_t) |
Variables | |
static int | Alive = 0 |
Function Documentation
◆ memAllocBuf()
Definition at line 46 of file minimal.cc.
Referenced by memAllocString().
◆ memAllocRigid()
void * memAllocRigid | ( | const size_t | netSize | ) |
Definition at line 78 of file minimal.cc.
◆ memAllocString()
Definition at line 66 of file minimal.cc.
◆ memFree()
void memFree | ( | void * | memory, |
int | type | ||
) |
Definition at line 60 of file minimal.cc.
◆ memFreeBuf()
void memFreeBuf | ( | size_t | size, |
void *const | buf | ||
) |
Definition at line 90 of file minimal.cc.
◆ memFreeBufFunc()
Definition at line 102 of file minimal.cc.
◆ memFreeRigid()
void memFreeRigid | ( | void *const | buf, |
size_t | net_size | ||
) |
Definition at line 84 of file minimal.cc.
◆ memFreeString()
void memFreeString | ( | size_t | size, |
void * | memory | ||
) |
Definition at line 72 of file minimal.cc.
◆ memReallocBuf()
Definition at line 53 of file minimal.cc.
◆ myFree()
|
static |
Variable Documentation
◆ Alive
|
static |
The number of currently alive objects (poor man's meter.alloc=meter.inuse). Technically, this is supposed to be a per-allocator statistics, but AllocatorProxy is not a Mem::Allocator so we maintain a global counter instead. We probably do not have to maintain this statistics at all.
Definition at line 17 of file minimal.cc.