Home
last modified time | relevance | path

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

/openthread-latest/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.hpp92 uint16_t GetReadLength(void) const { return mIndex; } in GetReadLength()
99 uint16_t GetRemainingLength(void) const { return mLength - mIndex; } in GetRemainingLength()
106 bool IsAllRead(void) const { return (mIndex == mLength); } in IsAllRead()
495 uint16_t GetRemainingLengthInStruct(void) const { return mEnd - mIndex; } in GetRemainingLengthInStruct()
504 bool IsAllReadInStruct(void) const { return (mIndex == mEnd); } in IsAllReadInStruct()
537 uint16_t mIndex; // Current read index. member in ot::Spinel::Decoder
/openthread-latest/tests/nexus/platform/
Dnexus_settings.hpp54 IndexMatcher(int aIndex) { mIndex = aIndex; } in IndexMatcher()
56 int mIndex; member
63 …ches(const IndexMatcher &aIndexMataher) const { return (AsNonConst(aIndexMataher).mIndex-- == 0); } in Matches()
/openthread-latest/src/core/meshcop/
Dmeshcop.cpp218 SetBit(aIndexes.mIndex[0] % GetNumBits()); in UpdateBloomFilter()
219 SetBit(aIndexes.mIndex[1] % GetNumBits()); in UpdateBloomFilter()
242 …return (mLength > 0) && GetBit(aIndexes.mIndex[0] % GetNumBits()) && GetBit(aIndexes.mIndex[1] % G… in Contains()
256 aIndexes.mIndex[0] = ccitt.Get(); in CalculateHashBitIndexes()
257 aIndexes.mIndex[1] = ansi.Get(); in CalculateHashBitIndexes()
Dmeshcop.hpp243 uint16_t mIndex[kNumIndexes]; ///< The hash bit index array. member
/openthread-latest/src/core/common/
Dsettings.hpp1030 … return (mIsDone && aOther.mIsDone) || (!mIsDone && !aOther.mIsDone && (mIndex == aOther.mIndex)); in operator ==()
1041 , mIndex(0) in ChildInfoIterator()
1050 uint16_t mIndex; member in ot::Settings::ChildInfoIterator
Dsettings.cpp287 , mIndex(0) in ChildInfoIterator()
297 mIndex++; in Advance()
307 SuccessOrExit(error = Get<SettingsDriver>().Delete(kKeyChildInfo, mIndex)); in Delete()
321 …error = Get<SettingsDriver>().Get(kKeyChildInfo, mIndex, reinterpret_cast<uint8_t *>(&mChildInfo),… in Read()