MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / RemoveAt

Method RemoveAt

source/script_object.cpp:1830–1843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1828template ResultType Array::InsertAt(index_t, ExprTokenType [], index_t);
1829
1830void 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
1845ResultType Array::SetLength(index_t aNewLength)
1846{

Callers

nothing calls this directly

Calls 1

FreeMethod · 0.45

Tested by

no test coverage detected