Home
last modified time | relevance | path

Searched refs:mArray (Results 1 – 5 of 5) sorted by relevance

/openthread-latest/src/core/common/
Dheap_array.hpp74 : mArray(nullptr) in Array()
93 Heap::Free(mArray); in Free()
94 mArray = nullptr; in Free()
130 const Type *AsCArray(void) const { return (mLength != 0) ? mArray : nullptr; } in AsCArray()
163 mArray = aOther.mArray; in TakeFrom()
166 aOther.mArray = nullptr; in TakeFrom()
180 Type &operator[](IndexType aIndex) { return mArray[aIndex]; } in operator []()
191 const Type &operator[](IndexType aIndex) const { return mArray[aIndex]; } in operator []()
203 Type *At(IndexType aIndex) { return (aIndex < mLength) ? &mArray[aIndex] : nullptr; } in At()
215 … const Type *At(IndexType aIndex) const { return (aIndex < mLength) ? &mArray[aIndex] : nullptr; } in At()
[all …]
/openthread-latest/src/core/thread/
Dmle_types.cpp179 …SuccessOrExit(error = aMessage.Read(offsetRange, mArray.GetArrayBuffer(), offsetRange.GetLength())… in ReadFrom()
180 mArray.SetLength(static_cast<uint8_t>(offsetRange.GetLength())); in ReadFrom()
188 …return (mArray.GetLength() == kMaxSize) && (memcmp(mArray.GetArrayBuffer(), aTxChallenge.m8, kMaxS… in operator ==()
Dmle_types.hpp494 void Clear(void) { mArray.Clear(); } in Clear()
502 bool IsEmpty(void) const { return mArray.GetLength() == 0; } in IsEmpty()
509 const uint8_t *GetBytes(void) const { return mArray.GetArrayBuffer(); } in GetBytes()
516 uint8_t GetLength(void) const { return mArray.GetLength(); } in GetLength()
542 Array<uint8_t, kMaxSize> mArray; member in ot::Mle::RxChallenge
/openthread-latest/src/core/net/
Dnd6.hpp502 …void GetAsPacket(Icmp6Packet &aPacket) const { aPacket.Init(mArray.AsCArray(), mArray.GetLength())… in GetAsPacket()
548 Heap::Array<uint8_t, kCapacityIncrement> mArray; member in ot::Ip6::Nd::TxMessage
820 bool ContainsAnyOptions(void) const { return (mArray.GetLength() > sizeof(Header)); } in ContainsAnyOptions()
Dnd6.cpp222 uint16_t oldLength = mArray.GetLength(); in AppendOption()
225 option = reinterpret_cast<Option *>(&mArray[oldLength]); in AppendOption()
240 SuccessOrExit(error = mArray.PushBack(byte)); in AppendBytes()