* Reserve space for N elements * * @param Size - the element * @return - whether the operation succeed */
| 240 | * @return - whether the operation succeed |
| 241 | */ |
| 242 | FORCEINLINE bool Reserve(int32 Size) |
| 243 | { |
| 244 | if (Num() > 0) |
| 245 | { |
| 246 | return false; |
| 247 | } |
| 248 | ScriptArray->Empty(Size, ElementSize ALIGNMENT_PLACEHOLDER); |
| 249 | return true; |
| 250 | } |
| 251 | |
| 252 | /** |
| 253 | * Resize the array to new size |
no test coverage detected