Home | History | Annotate | Download | only in core

Lines Matching refs:fCount

18         fReserve = fCount = 0;
27 fReserve = fCount = 0;
38 fReserve = fCount = count;
42 fReserve = fCount = 0;
47 SkTDArray<T> tmp(src.fArray, src.fCount);
56 if (src.fCount > fReserve) {
57 SkTDArray<T> tmp(src.fArray, src.fCount);
60 memcpy(fArray, src.fArray, sizeof(T) * src.fCount);
61 fCount = src.fCount;
68 return a.fCount == b.fCount &&
69 (a.fCount == 0 ||
70 !memcmp(a.fArray, b.fArray, a.fCount * sizeof(T)));
79 SkTSwap(fCount, other.fCount);
88 fReserve = fCount = 0;
93 bool isEmpty() const { return fCount == 0; }
98 int count() const { return (int)fCount; }
103 size_t bytes() const { return fCount * sizeof(T); }
106 T* end() const { return fArray ? fArray + fCount : NULL; }
108 SkASSERT((unsigned)index < fCount);
123 fReserve = fCount = 0;
125 SkASSERT(fReserve == 0 && fCount == 0);
131 fCount = 0;
136 this->growBy(count - fCount);
138 fCount = count;
144 SkASSERT(reserve > fCount);
145 size_t count = fCount;
146 this->growBy(reserve - fCount);
147 fCount = count;
153 memmove(fArray + 1, fArray, (fCount - 1) * sizeof(T));
161 size_t oldCount = fCount;
185 SkASSERT(index <= fCount);
186 size_t oldCount = fCount;
197 SkASSERT(index + count <= fCount);
198 fCount = fCount - count;
199 memmove(fArray + index, fArray + index + count, sizeof(T) * (fCount - index));
203 SkASSERT(index < fCount);
204 size_t newCount = fCount - 1;
205 fCount = newCount;
213 const T* stop = fArray + fCount;
224 const T* iter = fArray + fCount;
249 if (index >= fCount) {
252 int count = SkMin32(max, fCount - index);
258 this->copyRange(0, fCount, dst);
264 const T& top() const { return (*this)[fCount - 1]; }
265 T& top() { return (*this)[fCount - 1]; }
266 void pop(T* elem) { if (elem) *elem = (*this)[fCount - 1]; --fCount; }
267 void pop() { --fCount; }
271 T* stop = fArray + fCount;
281 T* stop = fArray + fCount;
291 T* stop = fArray + fCount;
301 T* stop = fArray + fCount;
322 SkASSERT(fCount <= fReserve);
336 size_t fReserve, fCount;
341 if (fCount + extra > fReserve) {
342 size_t size = fCount + extra + 4;
351 fCount += extra;