diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-C549EC51-D81F-5AEC-80EA-EF83B2D9AF51.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-C549EC51-D81F-5AEC-80EA-EF83B2D9AF51.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,27 @@ + + + + + +Structure +of a heapA heap consists of two lists of cells; the list of allocated cells +and the list of free cells. +

A heap simply consists of two lists of cells; one is the list of allocated +cells and the other the list of free cells. Each list is anchored in the heap +object.

+

A cell consists of a cell header followed by the body of the cell itself. +The body of the cell is the area of memory which is considered allocated.

+

The cell header is a struct of type RHeap::SCell defined +as part of the RHeap class in e32std.h.

+

The following diagram shows a typical mix of free and allocated cells.

+ +Example of the allocated and free cells in a heap + + +
\ No newline at end of file