| 1828 | template ResultType Array::InsertAt(index_t, ExprTokenType [], index_t); |
| 1829 | |
| 1830 | void Array::RemoveAt(index_t aIndex, index_t aCount) |
| 1831 | { |
| 1832 | ASSERT(aIndex + aCount <= mLength); |
| 1833 | |
| 1834 | for (index_t i = 0; i < aCount; ++i) |
| 1835 | { |
| 1836 | mItem[aIndex + i].Free(); |
| 1837 | } |
| 1838 | if (aIndex < mLength) |
| 1839 | { |
| 1840 | memmove(mItem + aIndex, mItem + aIndex + aCount, (mLength - aIndex - aCount) * sizeof(mItem[0])); |
| 1841 | } |
| 1842 | mLength -= aCount; |
| 1843 | } |
| 1844 | |
| 1845 | ResultType Array::SetLength(index_t aNewLength) |
| 1846 | { |