Home
last modified time | relevance | path

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

12

/openthread-3.6.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()
Dflash.hpp169 uint16_t GetSize(void) const { return sizeof(*this) + ((mLength + 3) & 0xfffc); } in GetSize() function in ot::Flash::RecordHeader
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
/openthread-3.6.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);
/openthread-3.6.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.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 …]
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()
Dip6.cpp189 … if (padOption.InitToPadHeaderWithSize(sizeof(HopByHopHeader) + mplOption.GetSize()) == kErrorNone) in AddMplOption()
191 SuccessOrExit(error = aMessage.PrependBytes(&padOption, padOption.GetSize())); in AddMplOption()
194 SuccessOrExit(error = aMessage.PrependBytes(&mplOption, mplOption.GetSize())); in AddMplOption()
265 hbhSize = hbh.GetSize(); in InsertMplOption()
280 aMessage.WriteBytes(hbhSize, &mplOption, mplOption.GetSize()); in InsertMplOption()
283 if (padOption.InitToPadHeaderWithSize(mplOption.GetSize()) == kErrorNone) in InsertMplOption()
285 aMessage.WriteBytes(hbhSize + mplOption.GetSize(), &padOption, padOption.GetSize()); in InsertMplOption()
325 endOffset = offset + hbh.GetSize(); in RemoveMplOption()
330 for (; offset < endOffset; offset += option.GetSize()) in RemoveMplOption()
400 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.hpp115 uint16_t GetSize(void) const { return mLength * kLengthUnit; } in GetSize() function in ot::Ip6::Nd::Option
488 bool IsValid(void) const { return GetSize() >= sizeof(*this); } in IsValid()
/openthread-3.6.0/src/core/common/
Dpool.hpp140 uint16_t GetSize(void) const { return kPoolSize; } in GetSize() function in ot::Pool
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()
Dstring.hpp391 uint16_t GetSize(void) const { return mSize; } in GetSize() function in ot::StringWriter
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()
/openthread-3.6.0/tests/unit/
Dtest_pool.cpp89 VerifyOrQuit(aPool.GetSize() == kPoolSize); in TestPool()
/openthread-3.6.0/src/core/thread/
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()
Dnetwork_data.cpp69 VerifyOrExit(aNetworkData.GetSize() >= mLength, error = kErrorNoBufs); in CopyNetworkData()
514 uint8_t subTlvSize = cur->GetSize(); in RemoveTemporaryDataIn()
545 uint8_t subTlvSize = cur->GetSize(); in RemoveTemporaryDataIn()
676 void MutableNetworkData::RemoveTlv(NetworkDataTlv *aTlv) { Remove(aTlv, aTlv->GetSize()); } in RemoveTlv()
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.6.0/src/core/meshcop/
Ddataset_manager_ftd.cpp226 offset += static_cast<uint16_t>(datasetTlv.GetSize()); in HandleSet()
433 offset += static_cast<uint16_t>(datasetTlv.GetSize()); in ApplyActiveDataset()
Ddataset_local.cpp193 if (aDataset.GetSize() == 0) in Save()

12