• Home
  • Raw
  • Download

Lines Matching refs:aCount

44818     index_type aCount) const  in First()
44820 …rtionConditionType<decltype(aCount <= size())>::isValid, "invalid assertion condition"); if ((__bu… in First()
44821 return { data(), aCount }; in First()
44828 index_type aCount) const in Last()
44830 …rtionConditionType<decltype(aCount <= size())>::isValid, "invalid assertion condition"); if ((__bu… in Last()
44831 return { data() + (size() - aCount), aCount }; in Last()
46182 size_t aCount) in assertNoOverlap() argument
46217 static inline void maybeSwapInPlace(T* aPtr, size_t aCount) in maybeSwapInPlace() argument
46224 for (size_t i = 0; i < aCount; i++) { in maybeSwapInPlace()
46234 static void copyAndSwapTo(void* aDest, const T* aSrc, size_t aCount) in copyAndSwapTo() argument
46236 assertNoOverlap(aDest, aSrc, aCount * sizeof(T)); in copyAndSwapTo()
46240 memcpy(aDest, aSrc, aCount * sizeof(T)); in copyAndSwapTo()
46245 for (size_t i = 0; i < aCount; ++i) { in copyAndSwapTo()
46262 static void copyAndSwapFrom(T* aDest, const void* aSrc, size_t aCount) in copyAndSwapFrom() argument
46264 assertNoOverlap(aDest, aSrc, aCount * sizeof(T)); in copyAndSwapFrom()
46268 memcpy(aDest, aSrc, aCount * sizeof(T)); in copyAndSwapFrom()
46273 for (size_t i = 0; i < aCount; ++i) { in copyAndSwapFrom()
46375 size_t aCount) in copyAndSwapToLittleEndian() argument
46377 copyAndSwapTo<ThisEndian, Little>(aDest, aSrc, aCount); in copyAndSwapToLittleEndian()
46384 static void swapToLittleEndianInPlace(T* aPtr, size_t aCount) in swapToLittleEndianInPlace() argument
46386 maybeSwapInPlace<ThisEndian, Little>(aPtr, aCount); in swapToLittleEndianInPlace()
46405 size_t aCount) in copyAndSwapToBigEndian() argument
46407 copyAndSwapTo<ThisEndian, Big>(aDest, aSrc, aCount); in copyAndSwapToBigEndian()
46414 static void swapToBigEndianInPlace(T* aPtr, size_t aCount) in swapToBigEndianInPlace() argument
46416 maybeSwapInPlace<ThisEndian, Big>(aPtr, aCount); in swapToBigEndianInPlace()
46432 copyAndSwapToNetworkOrder(void* aDest, const T* aSrc, size_t aCount) in copyAndSwapToNetworkOrder() argument
46434 copyAndSwapToBigEndian(aDest, aSrc, aCount); in copyAndSwapToNetworkOrder()
46439 swapToNetworkOrderInPlace(T* aPtr, size_t aCount) in swapToNetworkOrderInPlace() argument
46441 swapToBigEndianInPlace(aPtr, aCount); in swapToNetworkOrderInPlace()
46460 size_t aCount) in copyAndSwapFromLittleEndian() argument
46462 copyAndSwapFrom<Little, ThisEndian>(aDest, aSrc, aCount); in copyAndSwapFromLittleEndian()
46469 static void swapFromLittleEndianInPlace(T* aPtr, size_t aCount) in swapFromLittleEndianInPlace() argument
46471 maybeSwapInPlace<Little, ThisEndian>(aPtr, aCount); in swapFromLittleEndianInPlace()
46490 size_t aCount) in copyAndSwapFromBigEndian() argument
46492 copyAndSwapFrom<Big, ThisEndian>(aDest, aSrc, aCount); in copyAndSwapFromBigEndian()
46499 static void swapFromBigEndianInPlace(T* aPtr, size_t aCount) in swapFromBigEndianInPlace() argument
46501 maybeSwapInPlace<Big, ThisEndian>(aPtr, aCount); in swapFromBigEndianInPlace()
46516 size_t aCount) in copyAndSwapFromNetworkOrder() argument
46518 copyAndSwapFromBigEndian(aDest, aSrc, aCount); in copyAndSwapFromNetworkOrder()
46522 static void swapFromNetworkOrderInPlace(T* aPtr, size_t aCount) in swapFromNetworkOrderInPlace() argument
46524 swapFromBigEndianInPlace(aPtr, aCount); in swapFromNetworkOrderInPlace()
56655 bool InsertSlotsAt(index_type aIndex, size_type aCount,
56766 SizeType aCount, const Item* aValues) in implementation()
56769 ElemType* end = iter + aCount; in implementation()
56781 SizeType aCount, const Item* aValues) in implementation()
56783 memcpy(aElements + aStart, aValues, aCount * sizeof(ElemType)); in implementation()
56792 size_t aCount, size_t aElemSize) in MoveNonOverlappingRegionWithHeader()
56794 memcpy(aDest, aSrc, sizeof(nsTArrayHeader) + aCount * aElemSize); in MoveNonOverlappingRegionWithHeader()
56797 static void MoveOverlappingRegion(void* aDest, void* aSrc, size_t aCount, in MoveOverlappingRegion()
56800 memmove(aDest, aSrc, aCount * aElemSize); in MoveOverlappingRegion()
56803 static void MoveNonOverlappingRegion(void* aDest, void* aSrc, size_t aCount, in MoveNonOverlappingRegion()
56806 memcpy(aDest, aSrc, aCount * aElemSize); in MoveNonOverlappingRegion()
56821 static void MoveNonOverlappingRegionWithHeader(void* aDest, void* aSrc, size_t aCount, in MoveNonOverlappingRegionWithHeader()
56829 aCount, aElemSize); in MoveNonOverlappingRegionWithHeader()
56832 static void MoveOverlappingRegion(void* aDest, void* aSrc, size_t aCount, in MoveOverlappingRegion()
56837 ElemType* destElemEnd = destElem + aCount; in MoveOverlappingRegion()
56838 ElemType* srcElemEnd = srcElem + aCount; in MoveOverlappingRegion()
56852 MoveNonOverlappingRegion(aDest, aSrc, aCount, aElemSize); in MoveOverlappingRegion()
56856 static void MoveNonOverlappingRegion(void* aDest, void* aSrc, size_t aCount, in MoveNonOverlappingRegion()
56861 ElemType* destElemEnd = destElem + aCount; in MoveNonOverlappingRegion()
57398 elem_type* ReplaceElementsAt(index_type aStart, size_type aCount,
57405 elem_type* ReplaceElementsAt(index_type aStart, size_type aCount, in ReplaceElementsAt() argument
57409 return ReplaceElementsAt<Item, FallibleAlloc>(aStart, aCount, in ReplaceElementsAt()
57416 elem_type* ReplaceElementsAt(index_type aStart, size_type aCount, in ReplaceElementsAt() argument
57420 aStart, aCount, aArray.Elements(), aArray.Length()); in ReplaceElementsAt()
57425 size_type aCount, in ReplaceElementsAt() argument
57429 aStart, aCount, aSpan.Elements(), aSpan.Length()); in ReplaceElementsAt()
57436 elem_type* ReplaceElementsAt(index_type aStart, size_type aCount, in ReplaceElementsAt() argument
57440 return ReplaceElementsAt<Item, FallibleAlloc>(aStart, aCount, aArray); in ReplaceElementsAt()
57445 size_type aCount, in ReplaceElementsAt() argument
57449 return ReplaceElementsAt<Item, FallibleAlloc>(aStart, aCount, aSpan); in ReplaceElementsAt()
57455 elem_type* ReplaceElementsAt(index_type aStart, size_type aCount, in ReplaceElementsAt() argument
57458 return ReplaceElementsAt<Item, ActualAlloc>(aStart, aCount, &aItem, 1); in ReplaceElementsAt()
57464 elem_type* ReplaceElementsAt(index_type aStart, size_type aCount, in ReplaceElementsAt() argument
57467 return ReplaceElementsAt<Item, FallibleAlloc>(aStart, aCount, aItem); in ReplaceElementsAt()
57726 elem_type* AppendElements(size_type aCount) { in AppendElements() argument
57728 Length() + aCount, sizeof(elem_type)))) { in AppendElements()
57733 for (i = 0; i < aCount; ++i) { in AppendElements()
57736 this->IncrementLength(aCount); in AppendElements()
57742 elem_type* AppendElements(size_type aCount, in AppendElements() argument
57745 return AppendElements<FallibleAlloc>(aCount); in AppendElements()
57768 void RemoveElementsAt(index_type aStart, size_type aCount);
57924 elem_type* InsertElementsAt(index_type aIndex, size_type aCount) in InsertElementsAt() argument
57926 if (!base_type::template InsertSlotsAt<ActualAlloc>(aIndex, aCount, in InsertElementsAt()
57934 elem_type* iend = iter + aCount; in InsertElementsAt()
57944 elem_type* InsertElementsAt(index_type aIndex, size_type aCount, in InsertElementsAt() argument
57947 return InsertElementsAt<FallibleAlloc>(aIndex, aCount); in InsertElementsAt()
57952 elem_type* InsertElementsAt(index_type aIndex, size_type aCount,
57959 elem_type* InsertElementsAt(index_type aIndex, size_type aCount, in InsertElementsAt() argument
57962 return InsertElementsAt<Item, FallibleAlloc>(aIndex, aCount, aItem); in InsertElementsAt()
58011 void DestructRange(index_type aStart, size_type aCount) in DestructRange() argument
58014 elem_type *iend = iter + aCount; in DestructRange()
58025 void AssignRange(index_type aStart, size_type aCount, const Item* aValues) in AssignRange() argument
58029 ::implementation(Elements(), aStart, aCount, aValues); in AssignRange()
58036 nsTArray_Impl<E, Alloc>::ReplaceElementsAt(index_type aStart, size_type aCount, in ReplaceElementsAt() argument
58045 Length() + aArrayLen - aCount, sizeof(elem_type)))) { in ReplaceElementsAt()
58048 DestructRange(aStart, aCount); in ReplaceElementsAt()
58049 this->template ShiftData<ActualAlloc>(aStart, aCount, aArrayLen, in ReplaceElementsAt()
58058 nsTArray_Impl<E, Alloc>::RemoveElementsAt(index_type aStart, size_type aCount) in RemoveElementsAt() argument
58064 DestructRange(aStart, aCount); in RemoveElementsAt()
58065 this->template ShiftData<InfallibleAlloc>(aStart, aCount, 0, in RemoveElementsAt()
58098 nsTArray_Impl<E, Alloc>::InsertElementsAt(index_type aIndex, size_type aCount, in InsertElementsAt() argument
58101 if (!base_type::template InsertSlotsAt<ActualAlloc>(aIndex, aCount, in InsertElementsAt()
58109 elem_type* iend = iter + aCount; in InsertElementsAt()
58720 nsTArray_base<Alloc, Copy>::InsertSlotsAt(index_type aIndex, size_type aCount, in InsertSlotsAt() argument
58728 size_type newLen = Length() + aCount; in InsertSlotsAt()
58739 ShiftData<ActualAlloc>(aIndex, 0, aCount, aElemSize, aElemAlign); in InsertSlotsAt()
68739 StringHead(const nsAString& aStr, uint32_t aCount) in StringHead() argument
68741 return nsDependentSubstring(aStr, 0, aCount); in StringHead()
68745 StringTail(const nsAString& aStr, uint32_t aCount) in StringTail() argument
68747 return nsDependentSubstring(aStr, aStr.Length() - aCount, aCount); in StringTail()
68827 StringHead(const nsACString& aStr, uint32_t aCount) in StringHead() argument
68829 return nsDependentCSubstring(aStr, 0, aCount); in StringHead()
68833 StringTail(const nsACString& aStr, uint32_t aCount) in StringTail() argument
68835 return nsDependentCSubstring(aStr, aStr.Length() - aCount, aCount); in StringTail()
69158 int32_t aOffset = 0, int32_t aCount = -1) const;
69160 int32_t aOffset = 0, int32_t aCount = -1) const;
69164 int32_t aCount = -1) const;
69166 int32_t aCount = -1) const;
69169 int32_t aOffset = -1, int32_t aCount = -1) const;
69171 int32_t aOffset = -1, int32_t aCount = -1) const;
69175 int32_t aCount = -1) const;
69177 int32_t aCount = -1) const;
69180 int32_t aCount = -1) const;
69197 bool EqualsIgnoreCase(const char* aString, int32_t aCount = -1) const;
69222 size_type Mid(self_type& aResult, uint32_t aStartPos, uint32_t aCount) const;
69224 size_type Left(self_type& aResult, size_type aCount) const in Left()
69226 return Mid(aResult, 0, aCount); in Left()
69229 size_type Right(self_type& aResult, size_type aCount) const in Right()
69231 aCount = XPCOM_MIN(mLength, aCount); in Right()
69232 return Mid(aResult, mLength - aCount, aCount); in Right()
69760 int32_t aOffset = 0, int32_t aCount = -1) const;
69762 int32_t aOffset = 0, int32_t aCount = -1) const;
69765 int32_t aOffset = -1, int32_t aCount = -1) const;
69767 int32_t aOffset = -1, int32_t aCount = -1) const;
69770 int32_t aCount = -1) const;
69785 int32_t aCount = -1) const;
69787 bool EqualsIgnoreCase(const char* aString, int32_t aCount = -1) const in EqualsIgnoreCase() argument
69789 return Compare(aString, true, aCount) == 0; in EqualsIgnoreCase()
69815 size_type Mid(self_type& aResult, uint32_t aStartPos, uint32_t aCount) const;
69817 size_type Left(self_type& aResult, size_type aCount) const in Left()
69819 return Mid(aResult, 0, aCount); in Left()
69822 size_type Right(self_type& aResult, size_type aCount) const in Right()
69824 aCount = XPCOM_MIN(mLength, aCount); in Right()
69825 return Mid(aResult, mLength - aCount, aCount); in Right()
76434 explicit __attribute__((always_inline)) inline AlignedArray(size_t aCount, bool aZero = false) in AlignedArray()
76438 Realloc(aCount, aZero); in AlignedArray()
76460 __attribute__((always_inline)) inline void Realloc(size_t aCount, bool aZero = false) in Realloc()
76464 CheckedInt32(sizeof(T)) * aCount + (alignment - 1); in Realloc()
76496 mPtr = new (mPtr) T[aCount]; in Realloc()
76497 mCount = aCount; in Realloc()
81141 void SetChildCount(uint32_t aCount) in SetChildCount() argument
81145 (aCount << 10); in SetChildCount()
81148 void SetAttrSlotCount(uint32_t aCount) in SetAttrSlotCount() argument
81152 aCount; in SetAttrSlotCount()
84918 static void Append(nsTArray<nsString>& aArgs, uint16_t aCount) in Append()
84920 …sertionConditionType<decltype(aCount == 0)>::isValid, "invalid assertion condition"); if ((__built… in Append()
84924 …static void Append(nsTArray<nsString>& aArgs, uint16_t aCount, const nsAString& aFirst, Ts&&... aO… in Append()
84926 if (aCount == 0) { in Append()
84931 Append(aArgs, aCount - 1, Forward<Ts>(aOtherArgs)...); in Append()
90410 explicit nsCOMArray_base(int32_t aCount) : mArray(aCount) {} in nsCOMArray_base() argument
90453 uint32_t aCount);
90482 void AppendElements(nsISupports* const* aElements, uint32_t aCount) in AppendElements() argument
90484 return InsertElementsAt(Length(), aElements, aCount); in AppendElements()
90493 void Adopt(nsISupports** aElements, uint32_t aCount);
90540 bool RemoveObjectsAt(int32_t aIndex, int32_t aCount);
90542 void RemoveElementsAt(uint32_t aIndex, uint32_t aCount);
90600 explicit nsCOMArray(int32_t aCount) : nsCOMArray_base(aCount) {} in nsCOMArray() argument
90686 void InsertElementsAt(uint32_t aIndex, T* const* aElements, uint32_t aCount) in InsertElementsAt() argument
90689 aIndex, reinterpret_cast<nsISupports* const*>(aElements), aCount); in InsertElementsAt()
90737 void AppendElements(T* const* aElements, uint32_t aCount) in AppendElements() argument
90739 InsertElementsAt(Length(), aElements, aCount); in AppendElements()
126602 …virtual nsresult GetChildList(const char * aStartingAt, uint32_t *aCount, char * **aChildArray) = …
126711 …har * aStartingAt, uint32_t *aCount, char * **aChildArray) override { return sRootBranch-> GetChil… in PrefIsLocked() argument
144970 …quest, nsISupports *aContext, nsIInputStream *aInputStream, uint64_t aOffset, uint32_t aCount) = 0;
159378 void AppendRoundedRects(nsTArray<RoundedRect>* aArray, uint32_t aCount) const;
172415 …, nsISupports *aContext, nsIInputStream *aInputStream, uint64_t aOffset, uint32_t aCount) override;
176035 void AllocateContents(uint32_t aCount) { in AllocateContents()
176042 mContents.SetLength(aCount); in AllocateContents()
176050 void AllocateCounterIncrements(uint32_t aCount) { in AllocateCounterIncrements()
176052 mIncrements.SetLength(aCount); in AllocateCounterIncrements()
176065 void AllocateCounterResets(uint32_t aCount) { in AllocateCounterResets()
176067 mResets.SetLength(aCount); in AllocateCounterResets()