/openthread-latest/src/core/common/ |
D | heap_array.hpp | 75 , mLength(0) in Array() 113 mLength = 0; in Clear() 121 IndexType GetLength(void) const { return mLength; } in GetLength() 130 const Type *AsCArray(void) const { return (mLength != 0) ? mArray : nullptr; } in AsCArray() 164 mLength = aOther.mLength; in TakeFrom() 167 aOther.mLength = 0; in TakeFrom() 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() 242 Type *Back(void) { return (mLength > 0) ? &mArray[mLength - 1] : nullptr; } in Back() 251 const Type *Back(void) const { return (mLength > 0) ? &mArray[mLength - 1] : nullptr; } in Back() [all …]
|
D | data.hpp | 124 mLength = aLength; in Init() 166 LengthType GetLength(void) const { return mLength; } in GetLength() 173 void SetLength(LengthType aLength) { mLength = aLength; } in SetLength() 182 void CopyBytesTo(void *aBuffer) const { memcpy(aBuffer, mBuffer, mLength); } in CopyBytesTo() 194 … bool MatchesBytesIn(const void *aBuffer) const { return memcmp(mBuffer, aBuffer, mLength) == 0; } in MatchesBytesIn() 209 return MatchBytes(mBuffer, static_cast<const uint8_t *>(aBuffer), mLength, aMatcher); in MatchesBytesIn() 222 return (mLength == aOtherData.mLength) && MatchesBytesIn(aOtherData.mBuffer); in operator ==() 238 return (mLength >= aOtherData.mLength) && aOtherData.MatchesBytesIn(mBuffer); in StartsWith() 243 LengthType mLength; member in ot::Data 261 using Base::mLength; [all …]
|
D | array.hpp | 129 : mLength(0) in Array() 152 : mLength(0) in Array() 163 void Clear(void) { mLength = 0; } in Clear() 171 bool IsEmpty(void) const { return (mLength == 0); } in IsEmpty() 179 bool IsFull(void) const { return (mLength == GetMaxSize()); } in IsFull() 193 IndexType GetLength(void) const { return mLength; } in GetLength() 200 void SetLength(IndexType aLength) { mLength = aLength; } in SetLength() 247 Type *At(IndexType aIndex) { return (aIndex < mLength) ? &mElements[aIndex] : nullptr; } in At() 258 …const Type *At(IndexType aIndex) const { return (aIndex < mLength) ? &mElements[aIndex] : nullptr;… in At() 279 Type *Back(void) { return At(mLength - 1); } in Back() [all …]
|
D | frame_builder.cpp | 51 mLength = 0; in Init() 76 memcpy(mBuffer + mLength, aBuffer, aLength); in AppendBytes() 77 mLength += aLength; in AppendBytes() 98 aMacAddress.GetExtended().CopyTo(mBuffer + mLength, Mac::ExtAddress::kReverseByteOrder); in AppendMacAddress() 99 mLength += sizeof(Mac::ExtAddress); in AppendMacAddress() 113 SuccessOrExit(error = aMessage.Read(aOffset, mBuffer + mLength, aLength)); in AppendBytesFromMessage() 114 mLength += aLength; in AppendBytesFromMessage() 126 buffer = &mBuffer[mLength]; in AppendLength() 127 mLength += aLength; in AppendLength() 142 OT_ASSERT(aOffset <= mLength); in InsertBytes() [all …]
|
D | offset_range.hpp | 105 uint16_t GetEndOffset(void) const { return (mOffset + mLength); } in GetEndOffset() 112 uint16_t GetLength(void) const { return mLength; } in GetLength() 120 bool IsEmpty(void) const { return (mLength == 0); } in IsEmpty() 130 bool Contains(uint32_t aLength) const { return aLength <= mLength; } in Contains() 155 uint16_t mLength; member in ot::OffsetRange
|
D | offset_range.cpp | 48 mLength = Min(aLength, maxLength); in Init() 65 uint16_t length = static_cast<uint16_t>(Min<uint32_t>(aLength, mLength)); in AdvanceOffset() 68 mLength -= length; in AdvanceOffset() 71 void OffsetRange::ShrinkLength(uint16_t aLength) { mLength = Min(mLength, aLength); } in ShrinkLength()
|
D | frame_builder.hpp | 74 uint16_t GetLength(void) const { return mLength; } in GetLength() 98 uint16_t GetRemainingLength(void) const { return mMaxLength - mLength; } in GetRemainingLength() 109 …bool CanAppend(uint16_t aLength) const { return (static_cast<uint32_t>(mLength) + aLength) <= mMax… in CanAppend() 326 uint16_t mLength; member in ot::FrameBuilder
|
D | string.cpp | 310 , mLength(0) in StringWriter() 319 mLength = 0; in Clear() 337 len = vsnprintf(mBuffer + mLength, (mSize > mLength ? (mSize - mLength) : 0), aFormat, aArgs); in AppendVarArgs() 340 mLength += static_cast<uint16_t>(len); in AppendVarArgs()
|
/openthread-latest/third_party/tcplp/lib/ |
D | lbuf.c | 46 buffer->length = newentry->mLength; in lbuf_append() 51 buffer->length += newentry->mLength; in lbuf_append() 57 buffer->tail->mLength += numbytes; in lbuf_extend() 68 while (bytesleft >= curr->mLength - curroffset) { in lbuf_pop() 70 bytesleft -= (curr->mLength - curroffset); in lbuf_pop() 71 buffer->length -= (curr->mLength - curroffset); in lbuf_pop() 97 while (offsetleft > 0 && offsetleft >= curr->mLength) { in lbuf_getrange() 98 offsetleft -= curr->mLength; in lbuf_getrange() 104 while (bytesleft > 0 && bytesleft > curr->mLength) { in lbuf_getrange() 105 bytesleft -= curr->mLength; in lbuf_getrange() [all …]
|
/openthread-latest/src/core/meshcop/ |
D | meshcop.hpp | 157 void Clear(void) { mLength = 0; } in Clear() 164 bool IsEmpty(void) const { return mLength == 0; } in IsEmpty() 178 uint8_t GetLength(void) const { return mLength; } in GetLength() 186 bool IsValid(void) const { return (0 < mLength) && (mLength <= kMaxLength); } in IsValid() 222 uint64_t GetMask(void) const { return (static_cast<uint64_t>(1ULL) << mLength) - 1; } in GetMask() 272 uint8_t GetLength(void) const { return mLength; } in GetLength() 314 bool PermitsAllJoiners(void) const { return (mLength > 0) && DoesAllMatch(kPermitAll); } in PermitsAllJoiners() 366 uint8_t GetNumBits(void) const { return (mLength * kBitsPerByte); } in GetNumBits() 368 uint8_t BitIndex(uint8_t aBit) const { return (mLength - 1 - (aBit / kBitsPerByte)); } in BitIndex()
|
D | dataset.cpp | 96 : mLength(0) in Dataset() 108 VerifyOrExit(mLength <= kMaxLength); in ValidateTlvs() 234 const Tlv *Dataset::FindTlv(Tlv::Type aType) const { return As<Tlv>(Tlv::FindTlv(mTlvs, mLength, aT… in FindTlv() 312 memcpy(aTlvs.mTlvs, mTlvs, mLength); in ConvertTo() 313 aTlvs.mLength = static_cast<uint8_t>(mLength); in ConvertTo() 318 memcpy(mTlvs, aDataset.mTlvs, aDataset.mLength); in SetFrom() 319 mLength = aDataset.mLength; in SetFrom() 323 Error Dataset::SetFrom(const Tlvs &aTlvs) { return SetFrom(aTlvs.mTlvs, aTlvs.mLength); } in SetFrom() 331 mLength = aLength; in SetFrom() 332 memcpy(mTlvs, aTlvs, mLength); in SetFrom() [all …]
|
D | meshcop.cpp | 128 uint8_t remaining = mLength; in CopyTo() 159 return IsValid() && (mLength == aOther.mLength) && ((mValue & mask) == (aOther.mValue & mask)); in operator ==() 166 if (mLength <= BitSizeOf(uint16_t)) in ToString() 170 else if (mLength <= BitSizeOf(uint32_t)) in ToString() 180 string.Append("/len:%d", mLength); in ToString() 188 mLength = aLength; in Init() 216 OT_ASSERT((mLength > 0) && (mLength <= kMaxLength)); in UpdateBloomFilter() 242 …return (mLength > 0) && GetBit(aIndexes.mIndex[0] % GetNumBits()) && GetBit(aIndexes.mIndex[1] % G… in Contains() 274 for (uint8_t i = 0; i < mLength; i++) in DoesAllMatch()
|
/openthread-latest/src/lib/spinel/ |
D | spinel_decoder.hpp | 85 uint16_t GetLength(void) const { return mLength; } in GetLength() 99 uint16_t GetRemainingLength(void) const { return mLength - mIndex; } in GetRemainingLength() 106 bool IsAllRead(void) const { return (mIndex == mLength); } in IsAllRead() 532 void ClearSavedPosition(void) { mSavedIndex = mLength; } in ClearSavedPosition() 533 bool IsSavedPositionValid(void) const { return (mSavedIndex < mLength); } in IsSavedPositionValid() 536 uint16_t mLength; // Frame length (number of bytes). member in ot::Spinel::Decoder
|
D | spinel_driver.hpp | 237 : mLength(0) in Array() 243 bool IsFull(void) const { return (mLength == GetMaxSize()); } in IsFull() 247 return IsFull() ? OT_ERROR_NO_BUFS : (mElements[mLength++] = aEntry, OT_ERROR_NONE); in PushBack() 269 Type *end(void) { return &mElements[mLength]; } in end() 271 const Type *end(void) const { return &mElements[mLength]; } in end() 275 uint16_t mLength; member in ot::Spinel::SpinelDriver::Array
|
/openthread-latest/src/core/net/ |
D | ip4_types.cpp | 161 SuccessOrExit(StringParseUint8(cur, mLength, kMaxCidrLength)); in FromString() 172 aWriter.Append("%s/%d", AsCoreType(&mAddress).ToString().AsCString(), mLength); in ToString() 193 return (mLength == aOther.mLength) && in operator ==() 194 … (Ip6::Prefix::MatchLength(GetBytes(), aOther.GetBytes(), Ip4::Address::kSize) >= mLength); in operator ==() 200 mLength = aLength; in Set()
|
D | ip6_address.cpp | 57 mLength = aLength; in Set() 62 return (mLength >= 10) && in IsLinkLocal() 66 bool Prefix::IsMulticast(void) const { return (mLength >= 8) && (mPrefix.mFields.m8[0] == 0xff); } in IsMulticast() 68 bool Prefix::IsUniqueLocal(void) const { return (mLength >= 7) && ((mPrefix.mFields.m8[0] & 0xfe) =… in IsUniqueLocal() 72 …return (mLength == aPrefixLength) && (MatchLength(GetBytes(), aPrefixBytes, GetBytesSize()) >= mLe… in IsEqual() 77 return (mLength >= aSubPrefix.mLength) && in ContainsPrefix() 83 return (mLength >= NetworkPrefix::kLength) && in ContainsPrefix() 90 uint8_t lastByteBitMask = ~(static_cast<uint8_t>(1 << (byteLength * 8 - mLength)) - 1); in Tidy() 105 …return (mLength == aOther.mLength) && (MatchLength(GetBytes(), aOther.GetBytes(), GetBytesSize()) … in operator ==() 180 SuccessOrExit(StringParseUint8(cur, mLength, kMaxLength)); in FromString() [all …]
|
D | ip6_headers.hpp | 377 uint8_t GetLength(void) const { return mLength; } in GetLength() 386 void SetLength(uint8_t aLength) { mLength = aLength; } in SetLength() 393 uint16_t GetSize(void) const { return kLengthUnitSize * (mLength + 1); } in GetSize() 402 uint8_t mLength; member in ot::Ip6::ExtensionHeader 458 uint8_t GetLength(void) const { return mLength; } in GetLength() 501 void SetLength(uint8_t aLength) { mLength = aLength; } in SetLength() 507 uint8_t mLength; member in ot::Ip6::Option
|
D | nat64_translator.cpp | 118 if (mIp4Cidr.mLength == 0 || !mNat64Prefix.IsValidNat64()) in TranslateFromIp6() 149 …ip4Header.GetDestination().ExtractFromIp6Address(mNat64Prefix.mLength, ip6Header.GetDestination()); in TranslateFromIp6() 209 if (mIp4Cidr.mLength == 0) in TranslateToIp6() 469 VerifyOrExit(aCidr.mLength > 0 && aCidr.mLength <= 32, err = kErrorInvalidArgs); in SetIp4Cidr() 475 if (aCidr.mLength == 32) in SetIp4Cidr() 480 else if (aCidr.mLength == 31) in SetIp4Cidr() 488 numberOfHosts = static_cast<uint32_t>((1 << (Ip4::Address::kSize * 8 - aCidr.mLength)) - 2); in SetIp4Cidr() 589 VerifyOrExit(mIp4Cidr.mLength > 0, err = kErrorNotFound); in GetIp4Cidr() 600 VerifyOrExit(mNat64Prefix.mLength > 0, err = kErrorNotFound); in GetIp6Prefix() 657 if (mIp4Cidr.mLength > 0 && mNat64Prefix.IsValidNat64()) in UpdateState()
|
/openthread-latest/src/core/utils/ |
D | flash.hpp | 151 mLength = 0; in Init() 158 uint16_t GetLength(void) const { return mLength; } in GetLength() 159 void SetLength(uint16_t aLength) { mLength = aLength; } in SetLength() 161 uint16_t GetSize(void) const { return sizeof(*this) + ((mLength + 3) & 0xfffc); } in GetSize() 186 uint16_t mLength; member in ot::Flash::RecordHeader
|
/openthread-latest/src/core/thread/ |
D | network_data.hpp | 127 , mLength(aLength) in NetworkData() 141 , mLength(static_cast<uint8_t>(reinterpret_cast<const uint8_t *>(aEndTlv) - in NetworkData() 151 uint8_t GetLength(void) const { return mLength; } in GetLength() 397 …taTlv *GetTlvsEnd(void) const { return reinterpret_cast<const NetworkDataTlv *>(mTlvs + mLength); } in GetTlvsEnd() 552 uint8_t mLength; member in ot::NetworkData::NetworkData 599 void Clear(void) { mLength = 0; } in Clear() 607 void SetLength(uint8_t aLength) { mLength = aLength; } in SetLength() 678 bool CanInsert(uint16_t aSize) const { return (mLength + aSize <= mSize); } in CanInsert()
|
D | network_data.cpp | 62 VerifyOrExit(aNetworkData.GetSize() >= mLength, error = kErrorNoBufs); in CopyNetworkData() 64 memcpy(aNetworkData.GetBytes(), mTlvs, mLength); in CopyNetworkData() 65 aNetworkData.SetLength(mLength); in CopyNetworkData() 400 TlvIterator tlvIterator(mTlvs, mLength); in FindPrefix() 418 TlvIterator tlvIterator(mTlvs, mLength); in FindService() 443 length = mLength; in FindNextService() 448 length = static_cast<uint8_t>((mTlvs + mLength) - tlvs); in FindNextService() 740 mLength += static_cast<uint8_t>(aTlvSize); in AppendTlv() 750 OT_ASSERT(CanInsert(aLength) && mTlvs <= start && start <= mTlvs + mLength); in Insert() 751 memmove(start + aLength, start, mLength - static_cast<size_t>(start - mTlvs)); in Insert() [all …]
|
/openthread-latest/third_party/tcplp/lib/test/ |
D | test_all.c | 85 memcpy(&buf_string[0], &first.mData[0], first.mLength); in cbuf_test() 88 memcpy(&buf_string[first.mLength], &second.mData[0], second.mLength); in cbuf_test() 90 buf_string[first.mLength + second.mLength] = '\0'; in cbuf_test() 92 buf_string[first.mLength] = '\0'; in cbuf_test()
|
/openthread-latest/src/core/crypto/ |
D | storage.cpp | 75 , mLength(aKey.GetLength()) in LiteralKey() 81 mLength = sizeof(mBuffer); in LiteralKey() 82 SuccessOrAssert(aKey.ExtractKey(mBuffer, mLength)); in LiteralKey()
|
/openthread-latest/src/core/diags/ |
D | factory_diags.hpp | 159 string.AppendHexBytes(mData, mLength); in ToString() 166 return (mLength != aOther.mLength) || (memcmp(mData, aOther.mData, mLength) != 0); in operator !=() 170 uint16_t mLength; member
|
/openthread-latest/tests/unit/ |
D | test_lowpan.hpp | 55 uint16_t mLength; member 163 mExtHeader.mLength = aExtHeaderLength; in SetExtHeader() 191 mIphcHeader.mLength = aIphcLength; in SetIphcHeader() 210 mPayload.mLength = aLength; in SetPayload()
|