Beef Corlib
Classes | Public Types | Public Member Functions | Public Attributes | Protected Member Functions | List of all members
System.BumpAllocator Class Reference
Inheritance diagram for System.BumpAllocator:
System.IRawAllocator

Public Types

enum  DestructorHandlingKind { Allow, Fail, Ignore }
 

Public Member Functions

 BumpAllocator (DestructorHandlingKind destructorHandling=.Allow)
 
void * Alloc (int size, int align)
 
void Free (void *ptr)
 
int GetAllocSize ()
 
int GetTotalAllocSize ()
 

Public Attributes

DestructorHandlingKind DestructorHandling = .Allow
 

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)