MAllocator Class Reference

#include <e32cmn.h>

class MAllocator
Public Member Functions
pure virtual TAny *Alloc(TInt)
pure virtual TInt AllocLen(const TAny *)
pure virtual TInt AllocSize(TInt &)
pure virtual TInt Available(TInt &)
pure virtual TInt Compress()
pure virtual TInt DebugFunction(TInt, TAny *, TAny *)
pure virtual TInt Extension_(TUint, TAny *&, TAny *)
pure virtual voidFree(TAny *)
pure virtual TAny *ReAlloc(TAny *, TInt, TInt)
pure virtual voidReset()

Detailed Description

Base class for memory allocators.

Member Function Documentation

Alloc ( TInt )

TAny *Alloc(TIntaSize)[pure virtual]

AllocLen ( const TAny * )

TInt AllocLen(const TAny *aCell)const [pure virtual]

AllocSize ( TInt & )

TInt AllocSize(TInt &aTotalAllocSize)const [pure virtual]

Available ( TInt & )

TInt Available(TInt &aBiggestBlock)const [pure virtual]

Compress ( )

TInt Compress()[pure virtual]

DebugFunction ( TInt, TAny *, TAny * )

TInt DebugFunction(TIntaFunc,
TAny *a1 = NULL,
TAny *a2 = NULL
)[pure virtual]

Extension_ ( TUint, TAny *&, TAny * )

TInt Extension_(TUintaExtensionId,
TAny *&a0,
TAny *a1
)[pure virtual]

Free ( TAny * )

voidFree(TAny *aPtr)[pure virtual]

ReAlloc ( TAny *, TInt, TInt )

TAny *ReAlloc(TAny *aPtr,
TIntaSize,
TIntaMode = 0
)[pure virtual]

Reset ( )

voidReset()[pure virtual]