acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
heap::memory Class Reference
Inheritance diagram for heap::memory:
heap::allocator_base

Public Member Functions

virtual void initialize_memory (::heap::heap *pheap)
virtual void start_memory ()
virtual void * aligned_allocate (memsize size, memsize *psizeAllocated, memsize align=0, const_char_pointer pszAnnotation=nullptr)
virtual void * aligned_allocate_debug (memsize nSize, memsize *psizeAllocated, ::i32 nBlockUse, const_char_pointer szFileName, ::i32 nLine, memsize align=0, const_char_pointer pszAnnotation=nullptr)
virtual void * unaligned_allocate (memsize size, memsize *psizeAllocated, const_char_pointer pszAnnotation=nullptr)
virtual void * unaligned_allocate_debug (memsize nSize, memsize *psizeAllocated, ::i32 nBlockUse, const_char_pointer szFileName, ::i32 nLine, const_char_pointer pszAnnotation=nullptr)
virtual void * count_allocate (::collection::count count, memsize size, const_char_pointer pszAnnotation=nullptr)
void * allocate (memsize size, memsize *psizeActuallyAllocated, const_char_pointer pszAnnotation=nullptr) override
void * reallocate (void *p, memsize nSize, const_char_pointer pszAnnotation=nullptr) override
void free (void *p) override
bool has_size () const override
memsize size (void *p) override
virtual void * allocate_debug (memsize nSize, ::i32 nBlockUse, const_char_pointer szFileName, ::i32 nLine, const_char_pointer pszAnnotation=nullptr)
virtual void * reallocate_debug (void *p, memsize nSize, ::i32 nBlockUse, const_char_pointer szFileName, ::i32 nLine, const_char_pointer pszAnnotation=nullptr)
virtual void free_debug (void *p, ::i32 iBlockType)
virtual memsize size_debug (void *p, ::i32 iBlockType)

Public Attributes

heap * m_pheap

Friends

class ::c::malloc

Member Function Documentation

◆ allocate()

void * memory::allocate ( memsize size,
memsize * psizeActuallyAllocated,
const_char_pointer pszAnnotation = nullptr )
overridevirtual

Implements heap::allocator_base.

◆ free()

void memory::free ( void * p)
overridevirtual

Implements heap::allocator_base.

◆ has_size()

bool memory::has_size ( ) const
overridevirtual

Implements heap::allocator_base.

◆ reallocate()

void * memory::reallocate ( void * p,
memsize nSize,
const_char_pointer pszAnnotation = nullptr )
overridevirtual

Implements heap::allocator_base.

◆ size()

memsize memory::size ( void * p)
overridevirtual

Implements heap::allocator_base.


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