A r t i c l e s
Navigation

Note: This site is
a bit older, personal views
may have changed.

M a i n P a g e

D i r e c t o r y

CapArray


Haven't finished this page yet.

A caparray is similar to a capstring except instead of a string with capacity, it is instead an array with capacity.

Why have a CapArray?

Making many calls to SetLength() is inneffecient when the array is continually being modified (heap fragmentation, wasted CPU cycles for small memory allocations).

A caparray has a capacity that is set, and grows in large or small chunks (user specifiable).

The array has two sizes. One size is the virtual length, and one size is the capacity length. The capacity length is the amount of memory the array takes up while the virtual length is the amount of data available for reading.

About
This site is about programming and other things.
_ _ _