| 340 | |
| 341 | template <class T> |
| 342 | bool asCArray<T>::SetLength(asUINT numElements) |
| 343 | { |
| 344 | if( numElements > maxLength ) |
| 345 | { |
| 346 | Allocate(numElements, true); |
| 347 | if( numElements > maxLength ) |
| 348 | { |
| 349 | // Out of memory. Return without doing anything |
| 350 | return false; |
| 351 | } |
| 352 | } |
| 353 | |
| 354 | length = numElements; |
| 355 | return true; |
| 356 | } |
| 357 | |
| 358 | template <class T> |
| 359 | bool asCArray<T>::SetLengthNoConstruct(asUINT numElements) |
no outgoing calls
no test coverage detected