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(TIntaSize)

Parameters

TInt aSize

ChunkBase()

IMPORT_C TUint8 *ChunkBase()const

ConstructL()

voidConstructL()[private]

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

TInt DoAlloc(TUint8 *&aCell,
TIntaSize,
RPointerArray< TUint8 > &aCells,
RArray< TInt > &aFreeCellLinks,
TBoolaLarge
)[private]

Parameters

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

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

voidDoFree(TUint8 *aCell,
RPointerArray< TUint8 > &aCells,
RArray< TInt > &aFreeCellLinks,
TBoolaLarge
)[private]

Parameters

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

Free(TAny *)

IMPORT_C voidFree(TAny *aCell)

Parameters

TAny * aCell

GrowSmallSection(TInt, TInt)

TInt GrowSmallSection(TIntaSize,
TIntaLastFreeCell
)[private]

Parameters

TInt aSize
TInt aLastFreeCell

NewL(const RChunk &)

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

Parameters

const RChunk & aChunk

ShrinkSmallSection(TInt)

voidShrinkSmallSection(TIntaShrinkBy)[private]

Parameters

TInt aShrinkBy

VirtualSize()

IMPORT_C TIntVirtualSize()[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]