Representation
An array of type Array<T> is represented as
follows:
- The array handle contains either the null pointer or a pointer to
an array block residing in the heap.
- The array block consists of n slots each of which may hold a
T object.
The array block is prefixed by two words that hold the size of
the block and the number of array slots, respectively. The size of the
array block is therefore the sum of the sizes of two integer words and of
n T objects. The size of Array<T> is the
pointer size of the machine.
Author: Wolfgang Schreiner
Last Modification: April 12, 1997