7 |
|
// but there is an optimization in the read streamer similar to the TClonesArray |
8 |
|
// where the heap memory of an existing object is reused. |
9 |
|
// This class is meant to be used as a datamember for objects which are contained |
10 |
< |
// inside a TClonesArray. |
11 |
< |
// For various reasons, the array cannot be written in split mode. |
10 |
> |
// inside a TClonesArray. For various reasons, the array cannot be written in split mode. |
11 |
> |
// This means you have to make sure that you declare it using "||" if you write out with |
12 |
> |
// high split level. |
13 |
|
// Array is meant to store basic data types as opposed to FastArray |
14 |
|
// which can hold arbitrary (non-heap using) classes. |
15 |
|
// Since it stores basic types it can not derive from the Collection<ArrayElement> |
158 |
|
return; |
159 |
|
|
160 |
|
fArray = static_cast<ArrayElement*>(TStorage::ReAlloc(fArray, s * sizeof(ArrayElement), |
161 |
< |
fCapacity * sizeof(ArrayElement))); |
161 |
> |
fCapacity * sizeof(ArrayElement))); |
162 |
|
fCapacity = s; |
163 |
|
} |
164 |
|
|