Scanner C++ API
Public Member Functions | List of all members
scanner::BlockAllocator Class Reference

Public Member Functions

 BlockAllocator (Allocator *allocator)
 
u8 * allocate (size_t size, i32 refs, std::string call_file="", i32 call_line=0)
 
u8 * allocate_sizes (const std::vector< size_t > &sizes, std::string call_file="", i32 call_line=0)
 
void add_refs (u8 *buffer, size_t refs)
 
void free (u8 *buffer)
 
std::vector< int > buffers_in_same_block (std::vector< u8 * > buffers)
 
bool buffer_in_block (u8 *buffer)
 
bool find_buffer (u8 *buffer, i32 &index)
 
const std::vector< Allocationallocations ()
 
u64 current_memory_allocated ()
 
u64 max_memory_allocated ()
 

The documentation for this class was generated from the following file: