Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
Loading...
Searching...
No Matches
MAllocator Class Referenceabstract

Base class for memory allocators. More...

#include <e32cmn.h>

Inheritance diagram for MAllocator:
RAllocator RHeap

Public Member Functions

virtual TAny * Alloc (TInt aSize)=0
 
virtual void Free (TAny *aPtr)=0
 
virtual TAny * ReAlloc (TAny *aPtr, TInt aSize, TInt aMode=0)=0
 
virtual TInt AllocLen (const TAny *aCell) const =0
 
virtual TInt Compress ()=0
 
virtual void Reset ()=0
 
virtual TInt AllocSize (TInt &aTotalAllocSize) const =0
 
virtual TInt Available (TInt &aBiggestBlock) const =0
 
virtual TInt DebugFunction (TInt aFunc, TAny *a1=NULL, TAny *a2=NULL)=0
 
virtual TInt Extension_ (TUint aExtensionId, TAny *&a0, TAny *a1)=0
 

Detailed Description

Base class for memory allocators.

API status
Internal component API.

Definition at line 2794 of file e32cmn.h.

Member Function Documentation

◆ Alloc()

virtual TAny * MAllocator::Alloc ( TInt  aSize)
pure virtual

Implemented in RHeap.

◆ AllocLen()

virtual TInt MAllocator::AllocLen ( const TAny *  aCell) const
pure virtual

Implemented in RHeap.

◆ AllocSize()

virtual TInt MAllocator::AllocSize ( TInt &  aTotalAllocSize) const
pure virtual

Implemented in RHeap.

◆ Available()

virtual TInt MAllocator::Available ( TInt &  aBiggestBlock) const
pure virtual

Implemented in RHeap.

◆ Compress()

virtual TInt MAllocator::Compress ( )
pure virtual

Implemented in RHeap.

◆ DebugFunction()

virtual TInt MAllocator::DebugFunction ( TInt  aFunc,
TAny *  a1 = NULL,
TAny *  a2 = NULL 
)
pure virtual

Implemented in RHeap.

◆ Extension_()

virtual TInt MAllocator::Extension_ ( TUint  aExtensionId,
TAny *&  a0,
TAny *  a1 
)
pure virtual

Implemented in RAllocator, and RHeap.

◆ Free()

virtual void MAllocator::Free ( TAny *  aPtr)
pure virtual

Implemented in RHeap.

◆ ReAlloc()

virtual TAny * MAllocator::ReAlloc ( TAny *  aPtr,
TInt  aSize,
TInt  aMode = 0 
)
pure virtual

Implemented in RHeap.

◆ Reset()

virtual void MAllocator::Reset ( )
pure virtual

Implemented in RHeap.


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