Beef Corlib
|
Public Types | |
enum | DestructorHandlingKind { Allow, Fail, Ignore } |
Public Member Functions | |
BumpAllocator (DestructorHandlingKind destructorHandling=.Allow) | |
void * | Alloc (int size, int align) |
void * | AllocTyped (Type type, int size, int align) |
void | Free (void *ptr) |
int | GetAllocSize () |
int | GetTotalAllocSize () |
Public Attributes | |
DestructorHandlingKind | DestructorHandling = .Allow |
int | PoolSizeMin = 4*1024 |
int | PoolSizeMax = 64*1024 |
Protected Member Functions | |
virtual void * | AllocLarge (int size, int align) |
virtual void | FreeLarge (void *ptr) |
virtual Span< uint8 > | AllocPool () |
virtual void | FreePool (Span< uint8 > span) |
void | GrowPool () |
void * | AllocWithDtor (int size, int align) |