Home
last modified time | relevance | path

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

12

/openthread-3.7.0/src/core/utils/
Dheap.cpp80 while (curr->GetSize() < size) in CAlloc()
90 if (curr->GetSize() > size + sizeof(Block)) in CAlloc()
92 const uint16_t newBlockSize = curr->GetSize() - size - sizeof(Block); in CAlloc()
99 if (prev->GetSize() < newBlockSize) in CAlloc()
111 mMemory.mFreeSize -= curr->GetSize(); in CAlloc()
126 …for (Block *block = &BlockNext(*prev); block->GetSize() < aBlock.GetSize(); block = &BlockNext(*bl… in BlockInsert()
157 mMemory.mFreeSize += block.GetSize(); in Free()
179 if (right.GetSize() > left->GetSize()) in Free()
194 left->SetSize(left->GetSize() + right.GetSize() + sizeof(Block)); in Free()
198 left->SetSize(left->GetSize() + block.GetSize() + sizeof(Block)); in Free()
[all …]
Dflash.cpp71 …SwapUsed = kSwapMarkerSize; mSwapUsed <= mSwapSize - sizeof(record); mSwapUsed += record.GetSize()) in Init()
125 for (offset = kSwapMarkerSize; offset < mSwapUsed; offset += record.GetSize()) in Get()
188 OT_ASSERT((mSwapSize - record.GetSize()) >= kSwapMarkerSize); in Add()
190 if ((mSwapSize - record.GetSize()) < mSwapUsed) in Add()
193 VerifyOrExit((mSwapSize - record.GetSize()) >= mSwapUsed, error = kErrorNoBufs); in Add()
196 otPlatFlashWrite(&GetInstance(), mSwapIndex, mSwapUsed, &record, record.GetSize()); in Add()
201 mSwapUsed += record.GetSize(); in Add()
212 for (; aOffset < mSwapUsed; aOffset += record.GetSize()) in DoesValidRecordExist()
234 for (uint32_t srcOffset = kSwapMarkerSize; srcOffset < mSwapUsed; srcOffset += record.GetSize()) in Swap()
240 … if (!record.IsValid() || DoesValidRecordExist(srcOffset + record.GetSize(), record.GetKey())) in Swap()
[all …]
Dheap.hpp77 uint16_t GetSize(void) const { return mSize; } in GetSize() function in ot::Utils::Block
215 return super.GetNext() == self.BlockOffset(first) && first.GetSize() == kFirstBlockSize; in IsClean()
296 …ht(const Block &aBlock) { return BlockAt(BlockOffset(aBlock) + sizeof(Block) + aBlock.GetSize()); } in BlockRight()
Dhistory_tracker.hpp335 uint16_t GetSize(void) const { return mSize; } in GetSize() function in ot::Utils::HistoryTracker::List
384 uint16_t GetSize(void) const { return 0; } in GetSize() function in ot::Utils::HistoryTracker::EntryList
Dflash.hpp169 uint16_t GetSize(void) const { return sizeof(*this) + ((mLength + 3) & 0xfffc); } in GetSize() function in ot::Flash::RecordHeader
/openthread-3.7.0/src/core/radio/
Dtrel_packet.cpp59 uint16_t Header::GetSize(Type aType) in GetSize() function in ot::Trel::Header
115 uint16_t headerSize = Header::GetSize(aType); in Init()
Dtrel_packet.hpp117 uint16_t GetLength(void) const { return GetSize(GetType()); } in GetLength()
227 static uint16_t GetSize(Type aType);
Dble_secure.cpp420 requiredBytes = extTlv.GetSize(); in HandleTlsReceive()
425 requiredBytes = tlv.GetSize(); in HandleTlsReceive()
/openthread-3.7.0/src/core/net/
Dip6_headers.cpp89 VerifyOrExit(aOffset + GetSize() <= aEndOffset, error = kErrorParse); in ParseFrom()
95 uint16_t Option::GetSize(void) const in GetSize() function in ot::Ip6::Option
Ddns_types.cpp817 aOffset += static_cast<uint16_t>(record.GetSize()); in ParseRecords()
850 aOffset += static_cast<uint16_t>(record.GetSize()); in FindRecord()
909 offset = static_cast<uint16_t>(recordOffset + aRecord.GetSize()); in FindRecord()
935 … if (((aType == kTypeAny) || (record.GetType() == aType)) && (record.GetSize() >= aMinRecordSize)) in ReadRecord()
943 aOffset += static_cast<uint16_t>(record.GetSize()); in ReadRecord()
977 VerifyOrExit(aOffset <= aStartOffset + GetSize(), error = kErrorParse); in ReadName()
999 aOffset += static_cast<uint16_t>(GetSize()); in SkipRecord()
1011 return (aOffset + GetSize() <= aMessage.GetLength()) ? kErrorNone : kErrorParse; in CheckRecord()
1191 return GetType() == Dns::ResourceRecord::kTypeAaaa && GetSize() == sizeof(*this); in IsValid()
1256 VerifyOrExit(aOffset + GetSize() <= endOffset, error = kErrorParse); in ReadFrom()
[all …]
Dnd6.cpp67 … reinterpret_cast<const Option *>(reinterpret_cast<const uint8_t *>(aOption) + aOption->GetSize()); in Next()
104 return (GetSize() >= sizeof(*this)) && (mPrefixLength <= Prefix::kMaxLength) && in IsValid()
139 return (GetSize() >= kMinSize) && (mPrefixLength <= Prefix::kMaxLength) && in IsValid()
Dip6.cpp192 … if (padOption.InitToPadHeaderWithSize(sizeof(HopByHopHeader) + mplOption.GetSize()) == kErrorNone) in AddMplOption()
194 SuccessOrExit(error = aMessage.PrependBytes(&padOption, padOption.GetSize())); in AddMplOption()
197 SuccessOrExit(error = aMessage.PrependBytes(&mplOption, mplOption.GetSize())); in AddMplOption()
268 hbhSize = hbh.GetSize(); in InsertMplOption()
283 aMessage.WriteBytes(hbhSize, &mplOption, mplOption.GetSize()); in InsertMplOption()
286 if (padOption.InitToPadHeaderWithSize(mplOption.GetSize()) == kErrorNone) in InsertMplOption()
288 aMessage.WriteBytes(hbhSize + mplOption.GetSize(), &padOption, padOption.GetSize()); in InsertMplOption()
328 endOffset = offset + hbh.GetSize(); in RemoveMplOption()
333 for (; offset < endOffset; offset += option.GetSize()) in RemoveMplOption()
403 aMessage.WriteBytes(mplOffset, &padOption, padOption.GetSize()); in RemoveMplOption()
[all …]
Ddns_dso.hpp175 uint32_t GetSize(void) const { return sizeof(Tlv) + static_cast<uint32_t>(GetLength()); } in GetSize() function in ot::Dns::Dso::Tlv
909 bool IsValid(void) const { return GetSize() >= sizeof(*this); } in IsValid()
930 bool IsValid(void) const { return GetSize() >= sizeof(*this); } in IsValid()
Dip6_headers.hpp430 uint16_t GetSize(void) const { return kLengthUnitSize * (mLength + 1); } in GetSize() function in ot::Ip6::ExtensionHeader
514 uint16_t GetSize(void) const;
Dnd6.hpp116 uint16_t GetSize(void) const { return mLength * kLengthUnit; } in GetSize() function in ot::Ip6::Nd::Option
489 bool IsValid(void) const { return GetSize() >= sizeof(*this); } in IsValid()
/openthread-3.7.0/src/core/common/
Dtlvs.hpp118 uint32_t GetSize(void) const;
148 …Tlv *GetNext(void) { return reinterpret_cast<Tlv *>(reinterpret_cast<uint8_t *>(this) + GetSize())… in GetNext()
160 return reinterpret_cast<const Tlv *>(reinterpret_cast<const uint8_t *>(this) + GetSize()); in GetNext()
Dpool.hpp140 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.hpp448 uint16_t GetSize(void) const { return mSize; } in GetSize() function in ot::StringWriter
/openthread-3.7.0/src/core/thread/
Dnetwork_data.cpp72 VerifyOrExit(aNetworkData.GetSize() >= mLength, error = kErrorNoBufs); in CopyNetworkData()
701 uint8_t subTlvSize = cur->GetSize(); in RemoveTemporaryDataIn()
734 uint8_t subTlvSize = cur->GetSize(); in RemoveTemporaryDataIn()
777 void MutableNetworkData::RemoveTlv(NetworkDataTlv *aTlv) { Remove(aTlv, aTlv->GetSize()); } in RemoveTlv()
Dlink_metrics.cpp452 … static_cast<uint16_t>(offset + tlv.GetSize()), in AppendReport()
460 offset += static_cast<uint16_t>(tlv.GetSize()); in AppendReport()
540 VerifyOrExit(offset + tlv.GetSize() <= endOffset, error = kErrorParse); in HandleManagementRequest()
541 tlvEndOffset = static_cast<uint16_t>(offset + tlv.GetSize()); in HandleManagementRequest()
563 VerifyOrExit(tlv.GetSize() >= minTlvSize, error = kErrorParse); in HandleManagementRequest()
Ddiscover_scanner.cpp126 …static_cast<uint8_t>(discoveryRequest.GetSize() + ((mAdvDataLength != 0) ? joinerAdvertisement.Get… in Discover()
Dlowpan.cpp462 len = extHeader.GetSize() - sizeof(extHeader); in CompressExtensionHeader()
478 for (; offset < endOffset; offset += option.GetSize()) in CompressExtensionHeader()
487 padLength = option.GetSize(); in CompressExtensionHeader()
875 SuccessOrExit(aMessage.AppendBytes(&padOption, padOption.GetSize())); in DecompressExtensionHeader()
876 aMessage.MoveOffset(padOption.GetSize()); in DecompressExtensionHeader()
/openthread-3.7.0/tests/unit/
Dtest_pool.cpp89 VerifyOrQuit(aPool.GetSize() == kPoolSize); in TestPool()
/openthread-3.7.0/src/core/meshcop/
Dmeshcop_leader.cpp272 mSteeringDataTlv.GetSize()); in GetLength()

12