/openthread-latest/src/core/common/ |
D | heap_array.hpp | 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() [all …]
|
D | data.hpp | 130 mLength = aLength; in Init() 176 LengthType GetLength(void) const { return mLength; } in GetLength() 184 void SetLength(LengthType aLength) { mLength = aLength; } in SetLength() 194 void CopyBytesTo(void *aBuffer) const { memcpy(aBuffer, mBuffer, mLength); } in CopyBytesTo() 207 … bool MatchesBytesIn(const void *aBuffer) const { return memcmp(mBuffer, aBuffer, mLength) == 0; } in MatchesBytesIn() 223 return MatchBytes(mBuffer, static_cast<const uint8_t *>(aBuffer), mLength, aMatcher); in MatchesBytesIn() 237 return (mLength == aOtherData.mLength) && MatchesBytesIn(aOtherData.mBuffer); in operator ==() 254 return (mLength >= aOtherData.mLength) && aOtherData.MatchesBytesIn(mBuffer); in StartsWith() 259 LengthType mLength; member in ot::Data 278 using Base::mLength; [all …]
|
D | array.hpp | 135 : mLength(0) in Array() 160 : mLength(0) in Array() 172 void Clear(void) { mLength = 0; } in Clear() 181 bool IsEmpty(void) const { return (mLength == 0); } in IsEmpty() 190 bool IsFull(void) const { return (mLength == GetMaxSize()); } in IsFull() 206 IndexType GetLength(void) const { return mLength; } in GetLength() 214 void SetLength(IndexType aLength) { mLength = aLength; } in SetLength() 266 Type *At(IndexType aIndex) { return (aIndex < mLength) ? &mElements[aIndex] : nullptr; } in At() 278 …const Type *At(IndexType aIndex) const { return (aIndex < mLength) ? &mElements[aIndex] : nullptr;… in At() 302 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() 130 OT_ASSERT(aOffset <= mLength); in InsertBytes() 134 memmove(mBuffer + aOffset + aLength, mBuffer + aOffset, mLength - aOffset); in InsertBytes() 136 mLength += aLength; in InsertBytes() [all …]
|
D | offset_range.hpp | 112 uint16_t GetEndOffset(void) const { return (mOffset + mLength); } in GetEndOffset() 120 uint16_t GetLength(void) const { return mLength; } in GetLength() 129 bool IsEmpty(void) const { return (mLength == 0); } in IsEmpty() 140 bool Contains(uint32_t aLength) const { return aLength <= mLength; } in Contains() 167 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 | 78 uint16_t GetLength(void) const { return mLength; } in GetLength() 105 uint16_t GetRemainingLength(void) const { return mMaxLength - mLength; } in GetRemainingLength() 117 …bool CanAppend(uint16_t aLength) const { return (static_cast<uint32_t>(mLength) + aLength) <= mMax… in CanAppend() 316 uint16_t mLength; member in ot::FrameBuilder
|
/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 | 161 void Clear(void) { mLength = 0; } in Clear() 169 bool IsEmpty(void) const { return mLength == 0; } in IsEmpty() 185 uint8_t GetLength(void) const { return mLength; } in GetLength() 194 bool IsValid(void) const { return (0 < mLength) && (mLength <= kMaxLength); } in IsValid() 234 uint64_t GetMask(void) const { return (static_cast<uint64_t>(1ULL) << mLength) - 1; } in GetMask() 290 uint8_t GetLength(void) const { return mLength; } in GetLength() 338 bool PermitsAllJoiners(void) const { return (mLength > 0) && DoesAllMatch(kPermitAll); } in PermitsAllJoiners() 395 uint8_t GetNumBits(void) const { return (mLength * kBitsPerByte); } in GetNumBits() 397 uint8_t BitIndex(uint8_t aBit) const { return (mLength - 1 - (aBit / kBitsPerByte)); } in BitIndex()
|
D | dataset.cpp | 105 : mLength(0) in Dataset() 117 VerifyOrExit(mLength <= kMaxLength); in ValidateTlvs() 230 const Tlv *Dataset::FindTlv(Tlv::Type aType) const { return As<Tlv>(Tlv::FindTlv(mTlvs, mLength, aT… in FindTlv() 304 memcpy(aTlvs.mTlvs, mTlvs, mLength); in ConvertTo() 305 aTlvs.mLength = static_cast<uint8_t>(mLength); in ConvertTo() 310 memcpy(mTlvs, aDataset.mTlvs, aDataset.mLength); in SetFrom() 311 mLength = aDataset.mLength; in SetFrom() 315 Error Dataset::SetFrom(const Tlvs &aTlvs) { return SetFrom(aTlvs.mTlvs, aTlvs.mLength); } in SetFrom() 323 mLength = aLength; in SetFrom() 324 memcpy(mTlvs, aTlvs, mLength); in SetFrom() [all …]
|
D | meshcop.cpp | 135 uint8_t remaining = mLength; in CopyTo() 166 return IsValid() && (mLength == aOther.mLength) && ((mValue & mask) == (aOther.mValue & mask)); in operator ==() 173 if (mLength <= BitSizeOf(uint16_t)) in ToString() 177 else if (mLength <= BitSizeOf(uint32_t)) in ToString() 187 string.Append("/len:%d", mLength); in ToString() 195 mLength = aLength; in Init() 223 OT_ASSERT((mLength > 0) && (mLength <= kMaxLength)); in UpdateBloomFilter() 249 …return (mLength > 0) && GetBit(aIndexes.mIndex[0] % GetNumBits()) && GetBit(aIndexes.mIndex[1] % G… in Contains() 281 for (uint8_t i = 0; i < mLength; i++) in DoesAllMatch()
|
/openthread-latest/src/lib/spinel/ |
D | spinel_decoder.hpp | 90 uint16_t GetLength(void) const { return mLength; } in GetLength() 106 uint16_t GetRemainingLength(void) const { return mLength - mIndex; } in GetRemainingLength() 114 bool IsAllRead(void) const { return (mIndex == mLength); } in IsAllRead() 572 void ClearSavedPosition(void) { mSavedIndex = mLength; } in ClearSavedPosition() 573 bool IsSavedPositionValid(void) const { return (mSavedIndex < mLength); } in IsSavedPositionValid() 576 uint16_t mLength; // Frame length (number of bytes). member in ot::Spinel::Decoder
|
D | spinel_driver.hpp | 255 : mLength(0) in Array() 261 bool IsFull(void) const { return (mLength == GetMaxSize()); } in IsFull() 265 return IsFull() ? OT_ERROR_NO_BUFS : (mElements[mLength++] = aEntry, OT_ERROR_NONE); in PushBack() 287 Type *end(void) { return &mElements[mLength]; } in end() 289 const Type *end(void) const { return &mElements[mLength]; } in end() 293 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 | 68 mLength = aLength; in Set() 73 return (mLength >= 10) && in IsLinkLocal() 77 bool Prefix::IsMulticast(void) const { return (mLength >= 8) && (mPrefix.mFields.m8[0] == 0xff); } in IsMulticast() 79 bool Prefix::IsUniqueLocal(void) const { return (mLength >= 7) && ((mPrefix.mFields.m8[0] & 0xfe) =… in IsUniqueLocal() 83 …return (mLength == aPrefixLength) && (MatchLength(GetBytes(), aPrefixBytes, GetBytesSize()) >= mLe… in IsEqual() 88 return (mLength >= aSubPrefix.mLength) && in ContainsPrefix() 94 return (mLength >= NetworkPrefix::kLength) && in ContainsPrefix() 101 uint8_t lastByteBitMask = ~(static_cast<uint8_t>(1 << (byteLength * 8 - mLength)) - 1); in Tidy() 116 …return (mLength == aOther.mLength) && (MatchLength(GetBytes(), aOther.GetBytes(), GetBytesSize()) … in operator ==() 191 SuccessOrExit(StringParseUint8(cur, mLength, kMaxLength)); in FromString() [all …]
|
D | ip6_headers.hpp | 412 uint8_t GetLength(void) const { return mLength; } in GetLength() 422 void SetLength(uint8_t aLength) { mLength = aLength; } in SetLength() 430 uint16_t GetSize(void) const { return kLengthUnitSize * (mLength + 1); } in GetSize() 439 uint8_t mLength; member in ot::Ip6::ExtensionHeader 502 uint8_t GetLength(void) const { return mLength; } in GetLength() 549 void SetLength(uint8_t aLength) { mLength = aLength; } in SetLength() 555 uint8_t mLength; member in ot::Ip6::Option
|
D | nat64_translator.cpp | 122 if (mIp4Cidr.mLength == 0 || !mNat64Prefix.IsValidNat64()) in TranslateFromIp6() 153 …ip4Header.GetDestination().ExtractFromIp6Address(mNat64Prefix.mLength, ip6Header.GetDestination()); in TranslateFromIp6() 213 if (mIp4Cidr.mLength == 0) in TranslateToIp6() 472 VerifyOrExit(aCidr.mLength > 0 && aCidr.mLength <= 32, err = kErrorInvalidArgs); in SetIp4Cidr() 478 if (aCidr.mLength == 32) in SetIp4Cidr() 483 else if (aCidr.mLength == 31) in SetIp4Cidr() 491 numberOfHosts = static_cast<uint32_t>((1 << (Ip4::Address::kSize * 8 - aCidr.mLength)) - 2); in SetIp4Cidr() 577 VerifyOrExit(mIp4Cidr.mLength > 0, err = kErrorNotFound); in GetIp4Cidr() 588 VerifyOrExit(mNat64Prefix.mLength > 0, err = kErrorNotFound); in GetIp6Prefix() 645 if (mIp4Cidr.mLength > 0 && mNat64Prefix.IsValidNat64()) in UpdateState()
|
/openthread-latest/src/core/utils/ |
D | flash.hpp | 159 mLength = 0; in Init() 166 uint16_t GetLength(void) const { return mLength; } in GetLength() 167 void SetLength(uint16_t aLength) { mLength = aLength; } in SetLength() 169 uint16_t GetSize(void) const { return sizeof(*this) + ((mLength + 3) & 0xfffc); } in GetSize() 194 uint16_t mLength; member in ot::Flash::RecordHeader
|
/openthread-latest/src/core/thread/ |
D | network_data.hpp | 132 , mLength(aLength) in NetworkData() 147 , mLength(static_cast<uint8_t>(reinterpret_cast<const uint8_t *>(aEndTlv) - in NetworkData() 158 uint8_t GetLength(void) const { return mLength; } in GetLength() 425 …taTlv *GetTlvsEnd(void) const { return reinterpret_cast<const NetworkDataTlv *>(mTlvs + mLength); } in GetTlvsEnd() 585 uint8_t mLength; member in ot::NetworkData::NetworkData 637 void Clear(void) { mLength = 0; } in Clear() 646 void SetLength(uint8_t aLength) { mLength = aLength; } in SetLength() 723 bool CanInsert(uint16_t aSize) const { return (mLength + aSize <= mSize); } in CanInsert()
|
D | network_data.cpp | 72 VerifyOrExit(aNetworkData.GetSize() >= mLength, error = kErrorNoBufs); in CopyNetworkData() 74 memcpy(aNetworkData.GetBytes(), mTlvs, mLength); in CopyNetworkData() 75 aNetworkData.SetLength(mLength); in CopyNetworkData() 410 TlvIterator tlvIterator(mTlvs, mLength); in FindPrefix() 428 TlvIterator tlvIterator(mTlvs, mLength); in FindService() 453 length = mLength; in FindNextService() 458 length = static_cast<uint8_t>((mTlvs + mLength) - tlvs); in FindNextService() 750 mLength += static_cast<uint8_t>(aTlvSize); in AppendTlv() 760 OT_ASSERT(CanInsert(aLength) && mTlvs <= start && start <= mTlvs + mLength); in Insert() 761 memmove(start + aLength, start, mLength - static_cast<size_t>(start - mTlvs)); in Insert() [all …]
|
/openthread-latest/src/core/diags/ |
D | factory_diags.hpp | 161 string.AppendHexBytes(mData, mLength); in ToString() 168 return (mLength != aOther.mLength) || (memcmp(mData, aOther.mData, mLength) != 0); in operator !=() 172 uint16_t mLength; member
|
/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 | 73 , mLength(aKey.GetLength()) in LiteralKey() 79 mLength = sizeof(mBuffer); in LiteralKey() 80 SuccessOrAssert(aKey.ExtractKey(mBuffer, mLength)); in LiteralKey()
|
/openthread-latest/src/core/mac/ |
D | mac_frame.cpp | 221 mLength = builder.GetLength(); in InitMacHeader() 229 mLength += CalculateSecurityHeaderSize(secCtl); in InitMacHeader() 230 mLength += CalculateMicSize(secCtl); in InitMacHeader() 235 mLength += kCommandIdSize; in InitMacHeader() 238 mLength += GetFcsSize(); in InitMacHeader() 251 VerifyOrExit((index + GetFooterLength()) <= mLength, error = kErrorParse); in ValidatePsdu() 678 VerifyOrExit(kFcfSize < mLength, index = kInvalidIndex); in FindSecurityHeaderIndex() 902 uint16_t Frame::GetPayloadLength(void) const { return mLength - (GetHeaderLength() + GetFooterLengt… in GetPayloadLength() 904 void Frame::SetPayloadLength(uint16_t aLength) { mLength = GetHeaderLength() + GetFooterLength() + … in SetPayloadLength() 917 VerifyOrExit(index < mLength, index = kInvalidIndex); in SkipSecurityHeaderIndex() [all …]
|
/openthread-latest/tests/unit/ |
D | test_lowpan.hpp | 55 uint16_t mLength; member 172 mExtHeader.mLength = aExtHeaderLength; in SetExtHeader() 202 mIphcHeader.mLength = aIphcLength; in SetIphcHeader() 223 mPayload.mLength = aLength; in SetPayload()
|