Lines Matching refs:count
38 inline bool InsertUninitialized(int32 index, int32 count);
39 inline bool Remove(int32 index, int32 count = 1);
131 Array<Element>::InsertUninitialized(int32 index, int32 count)
133 if (index < 0 || index > fSize || count < 0)
135 if (count == 0)
138 if (!_Resize(index, count))
141 fSize += count;
148 Array<Element>::Remove(int32 index, int32 count)
150 if (index < 0 || count < 0 || index + count > fSize) {
154 ", count: %" B_PRId32 ", size: %" B_PRId32, index, count, fSize);
159 if (count == 0)
162 if (index + count < fSize) {
163 memmove(fElements + index, fElements + index + count,
164 sizeof(Element) * (fSize - index - count));
167 _Resize(index, -count);
169 fSize -= count;