CChunkPile Class Reference

class CChunkPile : public CBase

Inherits from

Constructor & Destructor Documentation

CChunkPile(const RChunk &)

CChunkPile ( const RChunk & aChunk ) [private]

Parameters

const RChunk & aChunk

~CChunkPile()

IMPORT_C ~CChunkPile ( )

Member Functions Documentation

Alloc(TInt)

IMPORT_C TUint8 * Alloc ( TInt aSize )

Parameters

TInt aSize

ChunkBase()

IMPORT_C TUint8 * ChunkBase ( ) const

ConstructL()

void ConstructL ( ) [private]

DoAlloc(TUint8 *&, TInt, RPointerArray< TUint8 > &, RArray< TInt > &, TBool)

TInt DoAlloc ( TUint8 *& aCell,
TInt aSize,
RPointerArray < TUint8 > & aCells,
RArray < TInt > & aFreeCellLinks,
TBool aLarge
) [private]

Parameters

TUint8 *& aCell
TInt aSize
RPointerArray < TUint8 > & aCells
RArray < TInt > & aFreeCellLinks
TBool aLarge

DoFree(TUint8 *, RPointerArray< TUint8 > &, RArray< TInt > &, TBool)

void DoFree ( TUint8 * aCell,
RPointerArray < TUint8 > & aCells,
RArray < TInt > & aFreeCellLinks,
TBool aLarge
) [private]

Parameters

TUint8 * aCell
RPointerArray < TUint8 > & aCells
RArray < TInt > & aFreeCellLinks
TBool aLarge

Free(TAny *)

IMPORT_C void Free ( TAny * aCell )

Parameters

TAny * aCell

GrowSmallSection(TInt, TInt)

TInt GrowSmallSection ( TInt aSize,
TInt aLastFreeCell
) [private]

Parameters

TInt aSize
TInt aLastFreeCell

NewL(const RChunk &)

IMPORT_C CChunkPile * NewL ( const RChunk & aChunk ) [static]

Parameters

const RChunk & aChunk

ShrinkSmallSection(TInt)

void ShrinkSmallSection ( TInt aShrinkBy ) [private]

Parameters

TInt aShrinkBy

VirtualSize()

IMPORT_C TInt VirtualSize ( ) [static]

Member Data Documentation

RChunk iChunk

RChunk iChunk [private]

RArray< TInt > iFreeLargeCellLinks

RArray < TInt > iFreeLargeCellLinks [private]

RArray< TInt > iFreeSmallCellLinks

RArray < TInt > iFreeSmallCellLinks [private]

RPointerArray< TUint8 > iLargeCells

RPointerArray < TUint8 > iLargeCells [private]

TInt iLargeSectionBottom

TInt iLargeSectionBottom [private]

RCriticalSection iLock

RCriticalSection iLock [private]

TInt iPageSize

TInt iPageSize [private]

RPointerArray< TUint8 > iSmallCells

RPointerArray < TUint8 > iSmallCells [private]