Home
last modified time | relevance | path

Searched refs:GetSize (Results 1 – 25 of 42) sorted by relevance

12

/openthread-latest/src/core/utils/
Dheap.cpp79 while (curr->GetSize() < size) in CAlloc()
89 if (curr->GetSize() > size + sizeof(Block)) in CAlloc()
91 const uint16_t newBlockSize = curr->GetSize() - size - sizeof(Block); in CAlloc()
98 if (prev->GetSize() < newBlockSize) in CAlloc()
110 mMemory.mFreeSize -= curr->GetSize(); in CAlloc()
125 …for (Block *block = &BlockNext(*prev); block->GetSize() < aBlock.GetSize(); block = &BlockNext(*bl… in BlockInsert()
156 mMemory.mFreeSize += block.GetSize(); in Free()
178 if (right.GetSize() > left->GetSize()) in Free()
193 left->SetSize(left->GetSize() + right.GetSize() + sizeof(Block)); in Free()
197 left->SetSize(left->GetSize() + block.GetSize() + sizeof(Block)); in Free()
[all …]
Dflash.cpp68 …SwapUsed = kSwapMarkerSize; mSwapUsed <= mSwapSize - sizeof(record); mSwapUsed += record.GetSize()) in Init()
122 for (offset = kSwapMarkerSize; offset < mSwapUsed; offset += record.GetSize()) in Get()
185 OT_ASSERT((mSwapSize - record.GetSize()) >= kSwapMarkerSize); in Add()
187 if ((mSwapSize - record.GetSize()) < mSwapUsed) in Add()
190 VerifyOrExit((mSwapSize - record.GetSize()) >= mSwapUsed, error = kErrorNoBufs); in Add()
193 otPlatFlashWrite(&GetInstance(), mSwapIndex, mSwapUsed, &record, record.GetSize()); in Add()
198 mSwapUsed += record.GetSize(); in Add()
209 for (; aOffset < mSwapUsed; aOffset += record.GetSize()) in DoesValidRecordExist()
231 for (uint32_t srcOffset = kSwapMarkerSize; srcOffset < mSwapUsed; srcOffset += record.GetSize()) in Swap()
237 … if (!record.IsValid() || DoesValidRecordExist(srcOffset + record.GetSize(), record.GetKey())) in Swap()
[all …]
Dheap.hpp74 uint16_t GetSize(void) const { return mSize; } in GetSize() function in ot::Utils::Block
200 return super.GetNext() == self.BlockOffset(first) && first.GetSize() == kFirstBlockSize; in IsClean()
275 …ht(const Block &aBlock) { return BlockAt(BlockOffset(aBlock) + sizeof(Block) + aBlock.GetSize()); } in BlockRight()
Dhistory_tracker.hpp322 uint16_t GetSize(void) const { return mSize; } in GetSize() function in ot::Utils::HistoryTracker::List
371 uint16_t GetSize(void) const { return 0; } in GetSize() function in ot::Utils::HistoryTracker::EntryList
Dflash.hpp161 uint16_t GetSize(void) const { return sizeof(*this) + ((mLength + 3) & 0xfffc); } in GetSize() function in ot::Flash::RecordHeader
/openthread-latest/src/core/net/
Dnd6.cpp66 … reinterpret_cast<const Option *>(reinterpret_cast<const uint8_t *>(aOption) + aOption->GetSize()); in Next()
103 return (GetSize() >= sizeof(*this)) && (mPrefixLength <= Prefix::kMaxLength) && in IsValid()
138 return (GetSize() >= kMinSize) && (mPrefixLength <= Prefix::kMaxLength) && in IsValid()
265 for (; size < option.GetSize(); size++) in AppendLinkLayerOption()
Dip6_headers.cpp88 VerifyOrExit(aOffsetRange.Contains(GetSize()), error = kErrorParse); in ParseFrom()
94 uint16_t Option::GetSize(void) const in GetSize() function in ot::Ip6::Option
Ddns_types.cpp811 aOffset += static_cast<uint16_t>(record.GetSize()); in ParseRecords()
844 aOffset += static_cast<uint16_t>(record.GetSize()); in FindRecord()
903 offset = static_cast<uint16_t>(recordOffset + aRecord.GetSize()); in FindRecord()
929 … if (((aType == kTypeAny) || (record.GetType() == aType)) && (record.GetSize() >= aMinRecordSize)) in ReadRecord()
937 aOffset += static_cast<uint16_t>(record.GetSize()); in ReadRecord()
971 VerifyOrExit(aOffset <= aStartOffset + GetSize(), error = kErrorParse); in ReadName()
993 aOffset += static_cast<uint16_t>(GetSize()); in SkipRecord()
1005 return (aOffset + GetSize() <= aMessage.GetLength()) ? kErrorNone : kErrorParse; in CheckRecord()
1185 return GetType() == Dns::ResourceRecord::kTypeAaaa && GetSize() == sizeof(*this); in IsValid()
1250 VerifyOrExit(aOffset + GetSize() <= endOffset, error = kErrorParse); in ReadFrom()
[all …]
Dip6.cpp174 … if (padOption.InitToPadHeaderWithSize(sizeof(HopByHopHeader) + mplOption.GetSize()) == kErrorNone) in AddMplOption()
176 SuccessOrExit(error = aMessage.PrependBytes(&padOption, padOption.GetSize())); in AddMplOption()
179 SuccessOrExit(error = aMessage.PrependBytes(&mplOption, mplOption.GetSize())); in AddMplOption()
253 hbhSize = hbh.GetSize(); in InsertMplOption()
268 aMessage.WriteBytes(hbhSize, &mplOption, mplOption.GetSize()); in InsertMplOption()
271 if (padOption.InitToPadHeaderWithSize(mplOption.GetSize()) == kErrorNone) in InsertMplOption()
273 aMessage.WriteBytes(hbhSize + mplOption.GetSize(), &padOption, padOption.GetSize()); in InsertMplOption()
318 for (; !offsetRange.IsEmpty(); offsetRange.AdvanceOffset(option.GetSize())) in RemoveMplOption()
336 mplOffsetRange.ShrinkLength(option.GetSize()); in RemoveMplOption()
338 VerifyOrExit(option.GetSize() <= sizeof(MplOption), error = kErrorParse); in RemoveMplOption()
[all …]
Ddns_dso.hpp163 uint32_t GetSize(void) const { return sizeof(Tlv) + static_cast<uint32_t>(GetLength()); } in GetSize() function in ot::Dns::Dso::Tlv
858 bool IsValid(void) const { return GetSize() >= sizeof(*this); } in IsValid()
879 bool IsValid(void) const { return GetSize() >= sizeof(*this); } in IsValid()
Dip6_headers.hpp393 uint16_t GetSize(void) const { return kLengthUnitSize * (mLength + 1); } in GetSize() function in ot::Ip6::ExtensionHeader
469 uint16_t GetSize(void) const;
Dnd6.hpp118 uint16_t GetSize(void) const { return mLength * kLengthUnit; } in GetSize() function in ot::Ip6::Nd::Option
471 bool IsValid(void) const { return GetSize() >= sizeof(*this); } in IsValid()
/openthread-latest/src/core/radio/
Dtrel_packet.cpp56 uint16_t Header::GetSize(Type aType) in GetSize() function in ot::Trel::Header
112 uint16_t headerSize = Header::GetSize(aType); in Init()
Dtrel_packet.hpp109 uint16_t GetLength(void) const { return GetSize(GetType()); } in GetLength()
206 static uint16_t GetSize(Type aType);
Dble_secure.cpp404 requiredBytes = extTlv.GetSize(); in HandleTlsReceive()
409 requiredBytes = tlv.GetSize(); in HandleTlsReceive()
/openthread-latest/src/core/common/
Dtlvs.hpp111 uint32_t GetSize(void) const;
138 …Tlv *GetNext(void) { return reinterpret_cast<Tlv *>(reinterpret_cast<uint8_t *>(this) + GetSize())… in GetNext()
149 return reinterpret_cast<const Tlv *>(reinterpret_cast<const uint8_t *>(this) + GetSize()); in GetNext()
283 uint16_t GetSize(void) const { return mTlvOffsetRange.GetLength(); } in GetSize() function
Dpool.hpp132 uint16_t GetSize(void) const { return kPoolSize; } in GetSize() function in ot::Pool
Dtlvs.cpp42 uint32_t Tlv::GetSize(void) const in GetSize() function in ot::Tlv
57 …o(Message &aMessage) const { return aMessage.AppendBytes(this, static_cast<uint16_t>(GetSize())); } in AppendTo()
Dstring.hpp426 uint16_t GetSize(void) const { return mSize; } in GetSize() function in ot::StringWriter
/openthread-latest/src/core/thread/
Ddiscover_scanner.cpp119 …static_cast<uint8_t>(discoveryRequest.GetSize() + ((mAdvDataLength != 0) ? joinerAdvertisement.Get… in Discover()
327 for (; !offsetRange.IsEmpty(); offsetRange.AdvanceOffset(tlvInfo.GetSize())) in HandleDiscoveryResponse()
Dlink_metrics.cpp134 for (; !aOffsetRange.IsEmpty(); aOffsetRange.AdvanceOffset(tlvInfo.GetSize())) in HandleReport()
306 for (; !offsetRange.IsEmpty(); offsetRange.AdvanceOffset(tlvInfo.GetSize())) in HandleManagementResponse()
430 for (; !offsetRange.IsEmpty(); offsetRange.AdvanceOffset(tlvInfo.GetSize())) in AppendReport()
524 for (; !offsetRange.IsEmpty(); offsetRange.AdvanceOffset(tlvInfo.GetSize())) in HandleManagementRequest()
559 VerifyOrExit(tlvInfo.GetSize() >= minTlvSize, error = kErrorParse); in HandleManagementRequest()
Dnetwork_data.cpp62 VerifyOrExit(aNetworkData.GetSize() >= mLength, error = kErrorNoBufs); in CopyNetworkData()
691 uint8_t subTlvSize = cur->GetSize(); in RemoveTemporaryDataIn()
724 uint8_t subTlvSize = cur->GetSize(); in RemoveTemporaryDataIn()
767 void MutableNetworkData::RemoveTlv(NetworkDataTlv *aTlv) { Remove(aTlv, aTlv->GetSize()); } in RemoveTlv()
Dlowpan.cpp453 len = extHeader.GetSize() - sizeof(extHeader); in CompressExtensionHeader()
470 for (; !offsetRange.IsEmpty(); offsetRange.AdvanceOffset(option.GetSize())) in CompressExtensionHeader()
479 padLength = option.GetSize(); in CompressExtensionHeader()
867 SuccessOrExit(aMessage.AppendBytes(&padOption, padOption.GetSize())); in DecompressExtensionHeader()
868 aMessage.MoveOffset(padOption.GetSize()); in DecompressExtensionHeader()
/openthread-latest/tests/unit/
Dtest_pool.cpp89 VerifyOrQuit(aPool.GetSize() == kPoolSize); in TestPool()
/openthread-latest/src/core/meshcop/
Dmeshcop_leader.cpp259 mSteeringDataTlv.GetSize()); in GetLength()

12