|
Tesseract 3.01
|
#include <memblk.h>
Public Member Functions | |
| void | init (void *(*ext_malloc)(inT32), void(*ext_free)(void *), inT32 firstsize, inT32 lastsize, inT32 maxchunk) |
| void * | alloc (inT32 size, void *caller) |
| void * | alloc_p (inT32 size, void *caller) |
| void | dealloc (void *ptr, void *caller) |
| void | check (const char *string, inT8 level) |
| void | reduce_counts () |
| void | display_counts () |
| MEMBLOCK * | new_block (inT32 minsize) |
| uinT16 | hash_caller (void *addr) |
Public Attributes | |
| inT16 | blockcount |
| uinT16 | malloc_serial |
| MEMBLOCK * | topblock |
| MEMBLOCK * | currblock |
| MALLOC_CALL * | callers |
| void *(* | malloc )(inT32) |
| void(* | free )(void *) |
| inT32 | maxsize |
| inT32 | biggestblock |
| inT32 | totalmem |
| inT32 | memsize |
| uinT32 | malloc_div_ratio |
| uinT32 | malloc_minor_serial |
| uinT32 | malloc_auto_count |
| inT32 | call_bits |
| inT32 | entries |
| MEMBLOCK | memblocks [MAXBLOCKS] |
| void * MEM_ALLOCATOR::alloc | ( | inT32 | size, |
| void * | caller | ||
| ) |
| void * MEM_ALLOCATOR::alloc_p | ( | inT32 | size, |
| void * | caller | ||
| ) |
| void MEM_ALLOCATOR::check | ( | const char * | string, |
| inT8 | level | ||
| ) |
| void MEM_ALLOCATOR::dealloc | ( | void * | ptr, |
| void * | caller | ||
| ) |
| void MEM_ALLOCATOR::display_counts | ( | ) |
| uinT16 MEM_ALLOCATOR::hash_caller | ( | void * | addr | ) |
| void MEM_ALLOCATOR::init | ( | void *(*)(inT32) | ext_malloc, |
| void(*)(void *) | ext_free, | ||
| inT32 | firstsize, | ||
| inT32 | lastsize, | ||
| inT32 | maxchunk | ||
| ) |
| void MEM_ALLOCATOR::reduce_counts | ( | ) |
| void(* MEM_ALLOCATOR::free)(void *) |
| void*(* MEM_ALLOCATOR::malloc)(inT32) |
| MEMBLOCK MEM_ALLOCATOR::memblocks[MAXBLOCKS] |