MAllocator Class Reference

class MAllocator

Base class for memory allocators.

Member Functions Documentation

Alloc(TInt)

TAny *Alloc(TIntaSize)[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(TIntaFunc,
TAny *a1 = NULL,
TAny *a2 = NULL
)[pure virtual]

Parameters

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

Extension_(TUint, TAny *&, TAny *)

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

Parameters

TUint aExtensionId
TAny *& a0
TAny * a1

Free(TAny *)

voidFree(TAny *aPtr)[pure virtual]

Parameters

TAny * aPtr

ReAlloc(TAny *, TInt, TInt)

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

Parameters

TAny * aPtr
TInt aSize
TInt aMode = 0

Reset()

voidReset()[pure virtual]