equal
deleted
inserted
replaced
18 termed the <i>granularity</i> of the array. For example, adding a fifth element |
18 termed the <i>granularity</i> of the array. For example, adding a fifth element |
19 to a fixed flat array constructed with a granularity of four, causes the array |
19 to a fixed flat array constructed with a granularity of four, causes the array |
20 buffer to be re-allocated so that its capacity increases from four to eight |
20 buffer to be re-allocated so that its capacity increases from four to eight |
21 elements.</p> |
21 elements.</p> |
22 <fig id="GUID-B752C5C8-FFA3-5F27-8D75-C951EE2D1432"> |
22 <fig id="GUID-B752C5C8-FFA3-5F27-8D75-C951EE2D1432"> |
23 <image href="GUID-4922D80F-009D-56CE-B255-FDAF9C247667_d0e323011_href.png" placement="inline"/> |
23 <image href="GUID-4922D80F-009D-56CE-B255-FDAF9C247667_d0e320848_href.png" placement="inline"/> |
24 </fig> |
24 </fig> |
25 <p>For a segmented array buffer, the granularity defines the capacity of a |
25 <p>For a segmented array buffer, the granularity defines the capacity of a |
26 single segment. A segmented array buffer is always expanded by allocating |
26 single segment. A segmented array buffer is always expanded by allocating |
27 additional segments.</p> |
27 additional segments.</p> |
28 <p>The granularity of an array is defined at construction time. |
28 <p>The granularity of an array is defined at construction time. |