Lines Matching refs:mLength
77 , mLength(0) in Array()
118 mLength = 0; in Clear()
127 IndexType GetLength(void) const { return mLength; } in GetLength()
137 const Type *AsCArray(void) const { return (mLength != 0) ? mArray : nullptr; } in AsCArray()
174 mLength = aOther.mLength; in TakeFrom()
177 aOther.mLength = 0; in TakeFrom()
216 Type *At(IndexType aIndex) { return (aIndex < mLength) ? &mArray[aIndex] : nullptr; } in At()
229 … const Type *At(IndexType aIndex) const { return (aIndex < mLength) ? &mArray[aIndex] : nullptr; } in At()
259 Type *Back(void) { return (mLength > 0) ? &mArray[mLength - 1] : nullptr; } in Back()
269 const Type *Back(void) const { return (mLength > 0) ? &mArray[mLength - 1] : nullptr; } in Back()
287 if (mLength == mCapacity) in PushBack()
292 new (&mArray[mLength++]) Type(aEntry); in PushBack()
314 if (mLength == mCapacity) in PushBack()
319 new (&mArray[mLength++]) Type(static_cast<Type &&>(aEntry)); in PushBack()
341 if (mLength == mCapacity) in PushBack()
346 newEntry = new (&mArray[mLength++]) Type(); in PushBack()
360 if (mLength > 0) in PopBack()
362 mArray[mLength - 1].~Type(); in PopBack()
363 mLength--; in PopBack()
509 Type *begin(void) { return (mLength > 0) ? mArray : nullptr; } in begin()
510 Type *end(void) { return (mLength > 0) ? &mArray[mLength] : nullptr; } in end()
511 const Type *begin(void) const { return (mLength > 0) ? mArray : nullptr; } in begin()
512 const Type *end(void) const { return (mLength > 0) ? &mArray[mLength] : nullptr; } in end()
523 VerifyOrExit((aCapacity != mCapacity) && (aCapacity >= mLength)); in Allocate()
527 for (IndexType index = 0; index < mLength; index++) in Allocate()
542 IndexType mLength; member in ot::Heap::Array