| 18 | } |
| 19 | |
| 20 | bool LiteMutableArray::pushObject(const LiteObject *object) { |
| 21 | unsigned int newCount = array_count + 1; |
| 22 | if (newCount > array_capacity && newCount > ensureCapacity(newCount)) |
| 23 | return false; |
| 24 | |
| 25 | array[array_count] = object; |
| 26 | array_count++; |
| 27 | return true; |
| 28 | } |
| 29 | |
| 30 | unsigned int LiteMutableArray::getCount() { |
| 31 | return array_count; |
no outgoing calls
no test coverage detected