• Home
  • Raw
  • Download

Lines Matching refs:fArray

18     SkTDArray() : fArray(nullptr), fReserve(0), fCount(0) {}  in SkTDArray()
23 fArray = nullptr; in SkTDArray()
25 fArray = (T*)sk_malloc_throw(count * sizeof(T)); in SkTDArray()
26 memcpy(fArray, src, sizeof(T) * count); in SkTDArray()
30 SkTDArray(const SkTDArray<T>& src) : fArray(nullptr), fReserve(0), fCount(0) { in SkTDArray()
31 SkTDArray<T> tmp(src.fArray, src.fCount); in SkTDArray()
34 SkTDArray(SkTDArray<T>&& src) : fArray(nullptr), fReserve(0), fCount(0) { in SkTDArray()
38 sk_free(fArray); in ~SkTDArray()
44 SkTDArray<T> tmp(src.fArray, src.fCount);
47 sk_careful_memcpy(fArray, src.fArray, sizeof(T) * src.fCount);
64 !memcmp(a.fArray, b.fArray, a.fCount * sizeof(T)));
71 SkTSwap(fArray, other.fArray); in swap()
86 T* array = fArray; in release()
87 fArray = nullptr; in release()
111 T* begin() { return fArray; } in begin()
112 const T* begin() const { return fArray; } in begin()
113 T* end() { return fArray ? fArray + fCount : nullptr; } in end()
114 const T* end() const { return fArray ? fArray + fCount : nullptr; } in end()
118 return fArray[index];
122 return fArray[index];
133 if (fArray) { in reset()
134 sk_free(fArray); in reset()
135 fArray = nullptr; in reset()
169 memmove(fArray + 1, fArray, (fCount - 1) * sizeof(T)); in prepend()
170 return fArray; in prepend()
179 SkASSERT(src == nullptr || fArray == nullptr ||
180 src + count <= fArray || fArray + oldCount <= src);
184 memcpy(fArray + oldCount, src, sizeof(T) * count);
187 return fArray + oldCount;
204 T* dst = fArray + index;
215 memmove(fArray + index, fArray + index + count, sizeof(T) * (fCount - index));
223 memcpy(fArray + index, fArray + newCount, sizeof(T)); in removeShuffle()
228 const T* iter = fArray; in select()
229 const T* stop = fArray + fCount; in select()
233 return SkToInt(iter - fArray); in select()
240 const T* iter = fArray; in find()
241 const T* stop = fArray + fCount; in find()
245 return SkToInt(iter - fArray); in find()
252 const T* iter = fArray + fCount; in rfind()
253 const T* stop = fArray; in rfind()
281 memcpy(dst, fArray + index, sizeof(T) * count); in copyRange()
298 T* iter = fArray; in deleteAll()
299 T* stop = fArray + fCount; in deleteAll()
308 T* iter = fArray; in freeAll()
309 T* stop = fArray + fCount; in freeAll()
318 T* iter = fArray; in unrefAll()
319 T* stop = fArray + fCount; in unrefAll()
328 T* iter = fArray; in safeUnrefAll()
329 T* stop = fArray + fCount; in safeUnrefAll()
348 SkASSERT((fReserve == 0 && fArray == nullptr) || in validate()
349 (fReserve > 0 && fArray != nullptr)); in validate()
356 fArray = (T*)sk_realloc_throw(fArray, fReserve * sizeof(T)); in shrinkToFit()
360 T* fArray;
384 fArray = (T*)sk_realloc_throw(fArray, fReserve * sizeof(T)); in resizeStorageToAtLeast()