Home
last modified time | relevance | path

Searched refs:mIndex (Results 1 – 8 of 8) sorted by relevance

/openthread-3.6.0/src/lib/spinel/
Dspinel_decoder.cpp44 , mIndex(0) in Decoder()
64 mIndex = 0; in Reset()
99 VerifyOrExit(mIndex + sizeof(uint8_t) <= mEnd, error = OT_ERROR_PARSE); in ReadUint8()
100 aUint8 = mFrame[mIndex]; in ReadUint8()
101 mIndex += sizeof(uint8_t); in ReadUint8()
123 VerifyOrExit(mIndex + sizeof(uint16_t) <= mEnd, error = OT_ERROR_PARSE); in ReadUint16()
125 aUint16 = static_cast<uint16_t>(mFrame[mIndex] | (mFrame[mIndex + 1] << 8)); in ReadUint16()
127 mIndex += sizeof(uint16_t); in ReadUint16()
149 VerifyOrExit(mIndex + sizeof(uint32_t) <= mEnd, error = OT_ERROR_PARSE); in ReadUint32()
151 …aUint32 = ((static_cast<uint32_t>(mFrame[mIndex + 0]) << 0) | (static_cast<uint32_t>(mFrame[mIndex in ReadUint32()
[all …]
Dspinel_decoder.hpp98 uint16_t GetReadLength(void) const { return mIndex; } in GetReadLength()
106 uint16_t GetRemainingLength(void) const { return mLength - mIndex; } in GetRemainingLength()
114 bool IsAllRead(void) const { return (mIndex == mLength); } in IsAllRead()
532 uint16_t GetRemainingLengthInStruct(void) const { return mEnd - mIndex; } in GetRemainingLengthInStruct()
542 bool IsAllReadInStruct(void) const { return (mIndex == mEnd); } in IsAllReadInStruct()
577 uint16_t mIndex; // Current read index. member in ot::Spinel::Decoder
/openthread-3.6.0/src/core/thread/
Dchild.hpp117 , mIndex(aIndex) in AddressIterator()
128 Index GetAsIndex(void) const { return mIndex; } in GetAsIndex()
153 bool IsDone(void) const { return (mIndex >= kMaxIndex); } in IsDone()
162 void operator++(void) { mIndex++, Update(); } in operator ++()
171 void operator++(int) { mIndex++, Update(); } in operator ++()
195 bool operator==(const AddressIterator &aOther) const { return (mIndex == aOther.mIndex); } in operator ==()
207 , mIndex(kMaxIndex) in AddressIterator()
215 Index mIndex; member in ot::Child::AddressIterator
Dchild.cpp85 …return (mIndex == 0) ? &mMeshLocalAddress : ((mIndex < kMaxIndex) ? &mChild.mIp6Address[mIndex - 1… in GetAddress()
92 if ((mIndex == 0) && (mChild.GetMeshLocalIp6Address(mMeshLocalAddress) != kErrorNone)) in Update()
94 mIndex++; in Update()
101 VerifyOrExit((address != nullptr) && !address->IsUnspecified(), mIndex = kMaxIndex); in Update()
104 mIndex++; in Update()
/openthread-3.6.0/src/core/meshcop/
Dmeshcop.cpp223 SetBit(aIndexes.mIndex[0] % GetNumBits()); in UpdateBloomFilter()
224 SetBit(aIndexes.mIndex[1] % GetNumBits()); in UpdateBloomFilter()
247 …return (mLength > 0) && GetBit(aIndexes.mIndex[0] % GetNumBits()) && GetBit(aIndexes.mIndex[1] % G… in Contains()
261 aIndexes.mIndex[0] = ccitt.Get(); in CalculateHashBitIndexes()
262 aIndexes.mIndex[1] = ansi.Get(); in CalculateHashBitIndexes()
Dmeshcop.hpp257 uint16_t mIndex[kNumIndexes]; ///< The hash bit index array. member
/openthread-3.6.0/src/core/common/
Dsettings.cpp279 , mIndex(0) in ChildInfoIterator()
289 mIndex++; in Advance()
299 SuccessOrExit(error = Get<SettingsDriver>().Delete(kKeyChildInfo, mIndex)); in Delete()
313 …error = Get<SettingsDriver>().Get(kKeyChildInfo, mIndex, reinterpret_cast<uint8_t *>(&mChildInfo),… in Read()
Dsettings.hpp1156 … return (mIsDone && aOther.mIsDone) || (!mIsDone && !aOther.mIsDone && (mIndex == aOther.mIndex)); in operator ==()
1167 , mIndex(0) in ChildInfoIterator()
1176 uint16_t mIndex; member in ot::Settings::ChildInfoIterator