diff -r 51a74ef9ed63 -r ae94777fff8f Symbian3/SDK/Source/GUID-E2CB0826-FC44-5AC9-BBB1-B449073484F3.dita --- a/Symbian3/SDK/Source/GUID-E2CB0826-FC44-5AC9-BBB1-B449073484F3.dita Wed Mar 31 11:11:55 2010 +0100 +++ b/Symbian3/SDK/Source/GUID-E2CB0826-FC44-5AC9-BBB1-B449073484F3.dita Fri Jun 11 12:39:03 2010 +0100 @@ -1,36 +1,36 @@ - - - - - -Array -capacity and granularityDescribes the granularity and capacity of a dynamic array. -

The capacity of an array is the number of elements which the array -can hold or represent within the space currently allocated to its array buffer.

-

For a flat array buffer, the increase in capacity of a buffer, when the -insertion of an additional element causes the buffer to be re-allocated, is -termed the granularity of the array. For example, adding a fifth element -to a fixed flat array constructed with a granularity of four, causes the array -buffer to be re-allocated so that its capacity increases from four to eight -elements.

- - - -

For a segmented array buffer, the granularity defines the capacity of a -single segment. A segmented array buffer is always expanded by allocating -additional segments.

-

The granularity of an array is defined at construction time. -The choice of value depends on the use to be made of the array and needs careful -consideration. Too small a value for an array with a high turnover of elements -can incur considerable overhead from the process of allocating memory. Too -large a value can result in wasted space if insufficient new elements are -subsequently added.

-
See also

Using -Dynamic Buffers.

+ + + + + +Array +capacity and granularityDescribes the granularity and capacity of a dynamic array. +

The capacity of an array is the number of elements which the array +can hold or represent within the space currently allocated to its array buffer.

+

For a flat array buffer, the increase in capacity of a buffer, when the +insertion of an additional element causes the buffer to be re-allocated, is +termed the granularity of the array. For example, adding a fifth element +to a fixed flat array constructed with a granularity of four, causes the array +buffer to be re-allocated so that its capacity increases from four to eight +elements.

+ + + +

For a segmented array buffer, the granularity defines the capacity of a +single segment. A segmented array buffer is always expanded by allocating +additional segments.

+

The granularity of an array is defined at construction time. +The choice of value depends on the use to be made of the array and needs careful +consideration. Too small a value for an array with a high turnover of elements +can incur considerable overhead from the process of allocating memory. Too +large a value can result in wasted space if insufficient new elements are +subsequently added.

+
See also

Using +Dynamic Buffers.

\ No newline at end of file