MAllocator Class Reference

class MAllocator

Base class for memory allocators.

Member Functions Documentation

Alloc(TInt)

TAny * Alloc ( TInt aSize ) [pure virtual]

Parameters

TInt aSize

AllocLen(const TAny *)

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

Parameters

const TAny * aCell

AllocSize(TInt &)

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

Parameters

TInt & aTotalAllocSize

Available(TInt &)

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

Parameters

TInt & aBiggestBlock

Compress()

TInt Compress ( ) [pure virtual]

DebugFunction(TInt, TAny *, TAny *)

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

Parameters

TInt aFunc
TAny * a1 = NULL
TAny * a2 = NULL

Extension_(TUint, TAny *&, TAny *)

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

Parameters

TUint aExtensionId
TAny *& a0
TAny * a1

Free(TAny *)

void Free ( TAny * aPtr ) [pure virtual]

Parameters

TAny * aPtr

ReAlloc(TAny *, TInt, TInt)

TAny * ReAlloc ( TAny * aPtr,
TInt aSize,
TInt aMode = 0
) [pure virtual]

Parameters

TAny * aPtr
TInt aSize
TInt aMode = 0

Reset()

void Reset ( ) [pure virtual]