Home
last modified time | relevance | path

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

12

/openthread-2.7.6/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.hpp76 uint16_t GetSize(void) const { return mSize; } in GetSize() function in ot::Utils::Block
214 return super.GetNext() == self.BlockOffset(first) && first.GetSize() == kFirstBlockSize; in IsClean()
295 …ht(const Block &aBlock) { return BlockAt(BlockOffset(aBlock) + sizeof(Block) + aBlock.GetSize()); } in BlockRight()
Dhistory_tracker.hpp251 uint16_t GetSize(void) const { return mSize; } in GetSize() function in ot::Utils::HistoryTracker::List
300 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-2.7.6/src/core/thread/
Dlink_metrics.cpp168 …:MleRouter>().SendLinkMetricsManagementRequest(aDestination, subTlvs, fwdProbingSubTlv->GetSize()); in SendMgmtRequestForwardTrackingSeries()
200 …Destination, reinterpret_cast<const uint8_t *>(&enhAckConfigSubTlv), enhAckConfigSubTlv.GetSize()); in SendMgmtRequestEnhAckProbing()
271 … static_cast<uint16_t>(offset + tlv.GetSize()), in AppendReport()
279 offset += tlv.GetSize(); in AppendReport()
370 … aMessage, pos, static_cast<uint16_t>(offset + index + tlv.GetSize()), metrics)); in HandleManagementRequest()
380 … aMessage, pos, static_cast<uint16_t>(offset + index + tlv.GetSize()), metrics)); in HandleManagementRequest()
388 index += tlv.GetSize(); in HandleManagementRequest()
436 index += tlv.GetSize(); in HandleManagementResponse()
819 SuccessOrExit(error = aMessage.AppendBytes(&metric, metric.GetSize())); in AppendReportSubTlvToMessage()
820 aLength += metric.GetSize(); in AppendReportSubTlvToMessage()
[all …]
Ddiscover_scanner.cpp129 …static_cast<uint8_t>(discoveryRequest.GetSize() + ((mAdvDataLength != 0) ? joinerAdvertisement.Get… in Discover()
Dnetwork_data_leader_ftd.cpp260 VerifyOrExit(length + cur->GetSize() <= sizeof(tlvs)); in HandleCommissioningSet()
261 memcpy(tlvs + length, reinterpret_cast<uint8_t *>(cur), cur->GetSize()); in HandleCommissioningSet()
262 length += cur->GetSize(); in HandleCommissioningSet()
937 uint8_t tlvSize = aServer.GetSize(); in AddServer()
1186 uint8_t subTlvSize = server->GetSize(); in RemoveRlocInService()
1284 uint8_t subTlvSize = context->GetSize(); in RemoveContext()
Dnetwork_data.cpp503 uint8_t subTlvSize = cur->GetSize(); in RemoveTemporaryData()
537 uint8_t subTlvSize = cur->GetSize(); in RemoveTemporaryData()
683 Remove(aData, aDataLength, reinterpret_cast<uint8_t *>(aTlv), aTlv->GetSize()); in RemoveTlv()
/openthread-2.7.6/src/core/common/
Dtlvs.cpp42 uint32_t Tlv::GetSize(void) const in GetSize() function in ot::Tlv
60 return aMessage.AppendBytes(this, static_cast<uint16_t>(GetSize())); in AppendTo()
137 size = tlv.GetSize(); in Find()
146 size = extTlv.GetSize(); in Find()
203 VerifyOrExit(tlv.GetSize() + aOffset <= aMessage.GetLength(), error = kErrorParse); in ReadTlv()
Dtlvs.hpp119 uint32_t GetSize(void) const;
149 …Tlv *GetNext(void) { return reinterpret_cast<Tlv *>(reinterpret_cast<uint8_t *>(this) + GetSize())… in GetNext()
161 return reinterpret_cast<const Tlv *>(reinterpret_cast<const uint8_t *>(this) + GetSize()); in GetNext()
Dstring.hpp167 uint16_t GetSize(void) const { return mSize; } in GetSize() function in ot::StringWriter
Dpool.hpp138 uint16_t GetSize(void) const { return kPoolSize; } in GetSize() function in ot::Pool
/openthread-2.7.6/src/core/border_router/
Drouter_advertisement.cpp58 nextOption = reinterpret_cast<const uint8_t *>(aCurOption) + aCurOption->GetSize(); in GetNextOption()
62 VerifyOrExit(reinterpret_cast<const Option *>(nextOption)->GetSize() > 0, nextOption = nullptr); in GetNextOption()
63 VerifyOrExit(nextOption + reinterpret_cast<const Option *>(nextOption)->GetSize() <= bufferEnd, in GetNextOption()
Drouting_manager.cpp692 OT_ASSERT(bufferLength + pio.GetSize() <= sizeof(buffer)); in SendRouterAdvertisement()
693 memcpy(buffer + bufferLength, &pio, pio.GetSize()); in SendRouterAdvertisement()
694 bufferLength += pio.GetSize(); in SendRouterAdvertisement()
719 OT_ASSERT(bufferLength + pio.GetSize() <= sizeof(buffer)); in SendRouterAdvertisement()
720 memcpy(buffer + bufferLength, &pio, pio.GetSize()); in SendRouterAdvertisement()
721 bufferLength += pio.GetSize(); in SendRouterAdvertisement()
739 OT_ASSERT(bufferLength + rio.GetSize() <= sizeof(buffer)); in SendRouterAdvertisement()
740 memcpy(buffer + bufferLength, &rio, rio.GetSize()); in SendRouterAdvertisement()
741 bufferLength += rio.GetSize(); in SendRouterAdvertisement()
755 OT_ASSERT(bufferLength + rio.GetSize() <= sizeof(buffer)); in SendRouterAdvertisement()
[all …]
Drouter_advertisement.hpp122 uint16_t GetSize(void) const { return mLength * kLengthUnit; } in GetSize() function in ot::BorderRouter::RouterAdv::Option
273 return (GetSize() == sizeof(*this)) && (mPrefixLength <= OT_IP6_ADDRESS_SIZE * CHAR_BIT) && in IsValid()
/openthread-2.7.6/src/core/radio/
Dtrel_packet.cpp60 uint16_t Header::GetSize(Type aType) in GetSize() function in ot::Trel::Header
121 uint16_t headerSize = Header::GetSize(aType); in Init()
Dtrel_packet.hpp116 uint16_t GetLength(void) const { return GetSize(GetType()); } in GetLength()
226 static uint16_t GetSize(Type aType);
/openthread-2.7.6/src/core/net/
Ddns_types.cpp668 aOffset += static_cast<uint16_t>(record.GetSize()); in ParseRecords()
701 aOffset += static_cast<uint16_t>(record.GetSize()); in FindRecord()
760 offset = static_cast<uint16_t>(recordOffset + aRecord.GetSize()); in FindRecord()
786 … if (((aType == kTypeAny) || (record.GetType() == aType)) && (record.GetSize() >= aMinRecordSize)) in ReadRecord()
794 aOffset += static_cast<uint16_t>(record.GetSize()); in ReadRecord()
828 VerifyOrExit(aOffset <= aStartOffset + GetSize(), error = kErrorParse); in ReadName()
850 aOffset += static_cast<uint16_t>(GetSize()); in SkipRecord()
862 return (aOffset + GetSize() <= aMessage.GetLength()) ? kErrorNone : kErrorParse; in CheckRecord()
1017 return GetType() == Dns::ResourceRecord::kTypeAaaa && GetSize() == sizeof(*this); in IsValid()
1061 VerifyOrExit(aOffset <= startOffset + GetSize(), error = kErrorParse); in ReadPtrName()
Dsrp_client.cpp1390 VerifyOrExit(aOffset + aRecord.GetSize() <= aMessage.GetLength(), error = kErrorParse); in ReadResourceRecord()
1391 aOffset += static_cast<uint16_t>(aRecord.GetSize()); in ReadResourceRecord()
1418 VerifyOrExit(aOffset + option.GetSize() <= aMessage.GetLength(), error = kErrorParse); in ProcessOptRecord()
1433 size = static_cast<uint16_t>(option.GetSize()); in ProcessOptRecord()
/openthread-2.7.6/tests/unit/
Dtest_pool.cpp87 VerifyOrQuit(aPool.GetSize() == kPoolSize); in TestPool()
Dtest_string.cpp56 VerifyOrQuit(str.GetSize() == kStringSize); in TestStringWriter()
/openthread-2.7.6/src/core/meshcop/
Ddataset_local.cpp183 if (aDataset.GetSize() == 0) in Save()
Ddataset_manager_ftd.cpp235 offset += static_cast<uint16_t>(datasetTlv.GetSize()); in HandleSet()
469 offset += static_cast<uint16_t>(datasetTlv.GetSize()); in ApplyActiveDataset()
Ddataset.hpp712 uint16_t GetSize(void) const { return mLength; } in GetSize() function in ot::MeshCoP::Dataset

12