Lines Matching defs:nIndex
91 void c4_BaseArray::Grow(int nIndex) {
92 if (nIndex > _size)
93 SetLength(nIndex);
96 void c4_BaseArray::InsertAt(int nIndex, int nCount) {
99 int to = nIndex + nCount;
101 d4_memmove(GetData(to), GetData(nIndex), _size - to);
104 void c4_BaseArray::RemoveAt(int nIndex, int nCount) {
105 int from = nIndex + nCount;
107 d4_memmove(GetData(nIndex), GetData(from), _size - from);
122 void c4_DWordArray::InsertAt(int nIndex, t4_i32 newElement, int nCount) {
123 _vector.InsertAt(Off(nIndex), nCount *sizeof(t4_i32));
126 SetAt(nIndex++, newElement);
129 void c4_DWordArray::RemoveAt(int nIndex, int nCount) {
130 _vector.RemoveAt(Off(nIndex), nCount *sizeof(t4_i32));
143 void c4_PtrArray::InsertAt(int nIndex, void *newElement, int nCount) {
144 _vector.InsertAt(Off(nIndex), nCount *sizeof(void*));
147 SetAt(nIndex++, newElement);
150 void c4_PtrArray::RemoveAt(int nIndex, int nCount) {
151 _vector.RemoveAt(Off(nIndex), nCount *sizeof(void*));
173 void c4_StringArray::SetAt(int nIndex, const char *newElement) {
174 char *s = (char*)_ptrs.GetAt(nIndex);
178 _ptrs.SetAt(nIndex, newElement && *newElement ? _strdup(newElement): "");
187 void c4_StringArray::InsertAt(int nIndex, const char *newElement, int nCount) {
188 _ptrs.InsertAt(nIndex, 0, nCount);
191 SetAt(nIndex++, newElement);
194 void c4_StringArray::RemoveAt(int nIndex, int nCount) {
196 SetAt(nIndex + i, 0);
198 _ptrs.RemoveAt(nIndex, nCount);