Home
last modified time | relevance | path

Searched refs:Read (Results 1 – 25 of 93) sorted by relevance

1234

/openthread-3.7.0/src/core/meshcop/
Ddataset_manager_ftd.cpp90 SuccessOrExit(dataset.Read<ActiveTimestampTlv>(activeTimestamp)); in ProcessSetOrReplaceRequest()
96 SuccessOrExit(dataset.Read<PendingTimestampTlv>(pendingTimestamp)); in ProcessSetOrReplaceRequest()
107 if ((dataset.Read<ChannelTlv>(channelValue) == kErrorNone) && in ProcessSetOrReplaceRequest()
113 if ((dataset.Read<PanIdTlv>(panId) == kErrorNone) && (panId != Get<Mac::Mac>().GetPanId())) in ProcessSetOrReplaceRequest()
118 if ((dataset.Read<MeshLocalPrefixTlv>(meshLocalPrefix) == kErrorNone) && in ProcessSetOrReplaceRequest()
124 if (dataset.Read<NetworkKeyTlv>(networkKey) == kErrorNone) in ProcessSetOrReplaceRequest()
147 if (dataset.Read<CommissionerSessionIdTlv>(sessionId) == kErrorNone) in ProcessSetOrReplaceRequest()
172 IgnoreError(Get<ActiveDatasetManager>().Read(aInfo.mDataset)); in ProcessSetOrReplaceRequest()
189 if (aInfo.mDataset.Read<DelayTimerTlv>(delayTimer) == kErrorNone) in ProcessSetOrReplaceRequest()
286 IgnoreError(Read(dataset)); in GenerateLocal()
[all …]
Ddataset_manager.cpp80 error = Read(dataset); in Restore()
113 Error DatasetManager::Read(Dataset &aDataset) const in Read() function in ot::MeshCoP::DatasetManager
144 Error DatasetManager::Read(Dataset::Info &aDatasetInfo) const in Read() function in ot::MeshCoP::DatasetManager
151 SuccessOrExit(error = Read(dataset)); in Read()
158 Error DatasetManager::Read(Dataset::Tlvs &aDatasetTlvs) const in Read() function in ot::MeshCoP::DatasetManager
165 SuccessOrExit(error = Read(dataset)); in Read()
177 SuccessOrExit(error = Read(dataset)); in ApplyConfiguration()
424 SuccessOrExit(error = Read(dataset)); in GetChannelMask()
442 SuccessOrExit(Read(dataset)); in HandleTimer()
467 IgnoreError(Get<PendingDatasetManager>().Read(pendingDataset)); in SyncLocalWithLeader()
[all …]
Ddataset_updater.cpp73 SuccessOrExit(Get<ActiveDatasetManager>().Read(activeDataset)); in RequestUpdate()
74 SuccessOrExit(activeDataset.Read<ActiveTimestampTlv>(activeTimestamp)); in RequestUpdate()
175 SuccessOrExit(Get<ActiveDatasetManager>().Read(newDataset)); in HandleDatasetChanged()
179 SuccessOrExit(Get<PendingDatasetManager>().Read(newDataset)); in HandleDatasetChanged()
Ddataset_manager.hpp100 Error Read(Dataset &aDataset) const;
111 Error Read(Dataset::Info &aDatasetInfo) const;
122 Error Read(Dataset::Tlvs &aDatasetTlvs) const;
Dtcat_agent.cpp217 datasetError = Get<ActiveDatasetManager>().Read(datasetInfo); in CheckCommandClassAuthorizationFlags()
367 SuccessOrExit(error = aIncommingMessage.Read(offset, tlv)); in HandleSingleTlv()
372 SuccessOrExit(error = aIncommingMessage.Read(offset, extTlv)); in HandleSingleTlv()
489 …VerifyOrExit(Get<ActiveDatasetManager>().Read(datasetInfo) == kErrorNone, error = kErrorInvalidSta… in HandleStartThreadInterface()
/openthread-3.7.0/src/core/common/
Dencoding.hpp183 template <typename UintType> UintType Read(const uint8_t *aBuffer);
185 template <> inline uint8_t Read(const uint8_t *aBuffer) { return *aBuffer; } in Read() function
186 template <> inline uint16_t Read(const uint8_t *aBuffer) { return ReadUint16(aBuffer); } in Read() function
187 template <> inline uint32_t Read(const uint8_t *aBuffer) { return ReadUint32(aBuffer); } in Read() function
188 template <> inline uint64_t Read(const uint8_t *aBuffer) { return ReadUint64(aBuffer); } in Read() function
366 template <typename UintType> UintType Read(const uint8_t *aBuffer);
368 template <> inline uint8_t Read(const uint8_t *aBuffer) { return *aBuffer; } in Read() function
369 template <> inline uint16_t Read(const uint8_t *aBuffer) { return ReadUint16(aBuffer); } in Read() function
370 template <> inline uint32_t Read(const uint8_t *aBuffer) { return ReadUint32(aBuffer); } in Read() function
371 template <> inline uint64_t Read(const uint8_t *aBuffer) { return ReadUint64(aBuffer); } in Read() function
Dtlvs.hpp207 …return BigEndian::Read<typename UintTlvType::UintValueType>(reinterpret_cast<const uint8_t *>(this… in ReadValueAs()
277 …static Error Read(const Message &aMessage, uint16_t aOffset, typename SimpleTlvType::ValueType &aV… in Read() function in ot::Tlv
296 …static Error Read(const Message &aMessage, uint16_t aOffset, typename UintTlvType::UintValueType &… in Read() function in ot::Tlv
315 …static Error Read(const Message &aMessage, uint16_t aOffset, typename StringTlvType::StringType &a… in Read() function in ot::Tlv
Dframe_data.hpp156 template <typename ObjectType> Error Read(ObjectType &aObject) in Read() function in ot::FrameData
/openthread-3.7.0/tests/unit/
Dtest_dataset.cpp113 SuccessOrQuit(dataset.Read<PanIdTlv>(panId)); in TestDataset()
118 SuccessOrQuit(dataset.Read<NetworkKeyTlv>(networkKey)); in TestDataset()
129 SuccessOrQuit(dataset.Read<PanIdTlv>(panId)); in TestDataset()
142 SuccessOrQuit(dataset.Read<NetworkKeyTlv>(networkKey)); in TestDataset()
155 VerifyOrQuit(dataset.Read<PanIdTlv>(panId) == kErrorNotFound); in TestDataset()
189 SuccessOrQuit(dataset.Read<PanIdTlv>(panId)); in TestDataset()
194 SuccessOrQuit(dataset.Read<NetworkKeyTlv>(networkKey)); in TestDataset()
207 SuccessOrQuit(dataset.Read<PanIdTlv>(panId)); in TestDataset()
212 SuccessOrQuit(dataset.Read<NetworkKeyTlv>(networkKey)); in TestDataset()
Dtest_message.cpp78 SuccessOrQuit(message->Read(0, readBuffer, kMaxSize)); in TestMessage()
88 SuccessOrQuit(messageCopy->Read(0, readBuffer, kMaxSize)); in TestMessage()
115 SuccessOrQuit(message->Read(0, readBuffer, kMaxSize)); in TestMessage()
120 SuccessOrQuit(message->Read(offset, readBuffer, length)); in TestMessage()
180 SuccessOrQuit(message2->Read(0, readBuffer, kMaxSize)); in TestMessage()
204 SuccessOrQuit(message->Read(0, readBuffer, kMaxSize)); in TestMessage()
221 SuccessOrQuit(message->Read(0, readBuffer, kMaxSize)); in TestMessage()
240 SuccessOrQuit(message->Read(0, readBuffer, kMaxSize)); in TestMessage()
306 SuccessOrQuit(message->Read(0, readBuffer, kMaxSize - length)); in TestMessage()
327 SuccessOrQuit(message->Read(0, readBuffer, offset)); in TestMessage()
[all …]
Dtest_checksum.cpp110 SuccessOrQuit(aMessage.Read(aMessage.GetOffset(), data.mPayload, payloadLength)); in CalculateChecksum()
149 SuccessOrQuit(aMessage.Read(aMessage.GetOffset(), data.mPayload, payloadLength)); in CalculateChecksum()
164 SuccessOrQuit(aMessage.Read(byteOffset, byte)); in CorruptMessage()
217 SuccessOrQuit(message->Read(message->GetOffset(), udpHeader)); in TestUdpMessageChecksum()
286 SuccessOrQuit(message->Read(message->GetOffset(), icmp6Header)); in TestIcmp6MessageChecksum()
355 SuccessOrQuit(message->Read(message->GetOffset(), tcpHeader)); in TestTcp4MessageChecksum()
411 SuccessOrQuit(message->Read(message->GetOffset(), udpHeader)); in TestUdp4MessageChecksum()
446 SuccessOrQuit(message->Read(0, icmpHeader)); in TestIcmp4MessageChecksum()
449 SuccessOrQuit(message->Read(message->GetOffset(), mPayload, sizeof(mPayload))); in TestIcmp4MessageChecksum()
/openthread-3.7.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_asn1write.data232 ASN.1 Write / Read Length #0 (Len = 0, short form)
235 ASN.1 Write / Read Length #1 (Len = 127, short form)
238 ASN.1 Write / Read Length #2 (Len = 127, buffer too small)
241 ASN.1 Write / Read Length #3 (Len = 128, long form)
244 ASN.1 Write / Read Length #4 (Len = 255, long form)
247 ASN.1 Write / Read Length #5 (Len = 255, buffer too small)
250 ASN.1 Write / Read Length #6 (Len = 258, byte order)
253 ASN.1 Write / Read Length #7 (Len = 65535, long form)
256 ASN.1 Write / Read Length #8 (Len = 65535, buffer too small)
259 ASN.1 Write / Read Length #9 (Len = 66051, byte order)
[all …]
/openthread-3.7.0/src/core/thread/
Dnetwork_diagnostic.cpp252 SuccessOrExit(error = aRequest.Read(offset, tlvType)); in AppendRequestedTlvs()
560 SuccessOrExit(error = aRequest.Read(offset, tlvType)); in PrepareAndSendAnswers()
829 SuccessOrExit(aMessage.Read(aMessage.GetOffset(), tlv)); in HandleTmf()
837 SuccessOrExit(aMessage.Read(offset + i, type)); in HandleTmf()
1039 SuccessOrExit(error = aMessage.Read(offset, tlv)); in GetNextDiagTlv()
1043 SuccessOrExit(error = aMessage.Read(offset, extTlv)); in GetNextDiagTlv()
1059 … Tlv::Read<ExtMacAddressTlv>(aMessage, offset, AsCoreType(&aTlvInfo.mData.mExtAddress))); in GetNextDiagTlv()
1063 … SuccessOrExit(error = Tlv::Read<Address16Tlv>(aMessage, offset, aTlvInfo.mData.mAddr16)); in GetNextDiagTlv()
1070 SuccessOrExit(error = Tlv::Read<ModeTlv>(aMessage, offset, mode)); in GetNextDiagTlv()
1076 SuccessOrExit(error = Tlv::Read<TimeoutTlv>(aMessage, offset, aTlvInfo.mData.mTimeout)); in GetNextDiagTlv()
[all …]
Dlink_metrics.cpp147 SuccessOrExit(error = aMessage.Read(offset, tlv)); in HandleReport()
159 SuccessOrExit(error = Tlv::Read<StatusSubTlv>(aMessage, offset, status)); in HandleReport()
167 … SuccessOrExit(error = aMessage.Read(offset, &reportTlv, sizeof(Tlv) + ReportSubTlv::kMinLength)); in HandleReport()
183 SuccessOrExit(error = aMessage.Read(offset, reportTlv)); in HandleReport()
321 SuccessOrExit(error = aMessage.Read(offset, tlv)); in HandleManagementResponse()
327 SuccessOrExit(error = Tlv::Read<StatusSubTlv>(aMessage, offset, status)); in HandleManagementResponse()
441 SuccessOrExit(error = aRequestMessage.Read(offset, tlv)); in AppendReport()
446 SuccessOrExit(error = Tlv::Read<QueryIdSubTlv>(aRequestMessage, offset, queryId)); in AppendReport()
538 SuccessOrExit(error = aMessage.Read(offset, tlv)); in HandleManagementRequest()
566 SuccessOrExit(error = aMessage.Read(offset, subTlv, minTlvSize)); in HandleManagementRequest()
[all …]
Ddiscover_scanner.cpp339 IgnoreError(aRxInfo.mMessage.Read(offset, meshcopTlv)); in HandleDiscoveryResponse()
344 IgnoreError(aRxInfo.mMessage.Read(offset, discoveryResponse)); in HandleDiscoveryResponse()
351 SuccessOrExit(error = Tlv::Read<MeshCoP::ExtendedPanIdTlv>(aRxInfo.mMessage, offset, in HandleDiscoveryResponse()
356 IgnoreError(aRxInfo.mMessage.Read(offset, networkName)); in HandleDiscoveryResponse()
389 … Tlv::Read<MeshCoP::JoinerUdpPortTlv>(aRxInfo.mMessage, offset, result.mJoinerUdpPort)); in HandleDiscoveryResponse()
Dlowpan.cpp254 SuccessOrExit(error = aMessage.Read(aMessage.GetOffset(), ip6Header)); in Compress()
442 SuccessOrExit(error = aMessage.Read(aMessage.GetOffset(), extHeader)); in CompressExtensionHeader()
517 SuccessOrExit(error = aMessage.Read(aMessage.GetOffset(), udpHeader)); in CompressUdp()
699 SuccessOrExit(aFrameData.Read(aIp6Header.GetSource())); in DecompressBaseHeader()
705 SuccessOrExit(aFrameData.Read(aIp6Header.GetSource().GetIid())); in DecompressBaseHeader()
740 SuccessOrExit(aFrameData.Read(aIp6Header.GetDestination())); in DecompressBaseHeader()
744 SuccessOrExit(aFrameData.Read(aIp6Header.GetDestination().GetIid())); in DecompressBaseHeader()
782 SuccessOrExit(aFrameData.Read(aIp6Header.GetDestination())); in DecompressBaseHeader()
1044 SuccessOrExit(aMessage.Read(aOffset, hcCtl)); in DecompressEcn()
1058 SuccessOrExit(aMessage.Read(aOffset, byte)); in DecompressEcn()
[all …]
/openthread-3.7.0/src/core/net/
Dip6_headers.cpp48 SuccessOrExit(aMessage.Read(0, *this)); in ParseFrom()
79 SuccessOrExit(error = aMessage.Read(aOffset, this, sizeof(mType))); in ParseFrom()
87 SuccessOrExit(error = aMessage.Read(aOffset, *this)); in ParseFrom()
Dip6.cpp267 SuccessOrExit(error = aMessage.Read(0, hbh)); in InsertMplOption()
323 IgnoreError(aMessage.Read(offset, ip6Header)); in RemoveMplOption()
327 IgnoreError(aMessage.Read(offset, hbh)); in RemoveMplOption()
512 SuccessOrExit(error = aMessage.Read(offset, hbhHeader)); in HandleOptions()
558 SuccessOrExit(error = aMessage.Read(0, header)); in FragmentDatagram()
632 SuccessOrExit(error = aMessage.Read(0, header)); in HandleFragment()
633 SuccessOrExit(error = aMessage.Read(aMessage.GetOffset(), fragmentHeader)); in HandleFragment()
644 SuccessOrExit(error = msg.Read(0, headerBuffer)); in HandleFragment()
700 SuccessOrExit(error = aMessage.Read(0, header)); in HandleFragment()
766 SuccessOrExit(error = aMessage.Read(0, header)); in SendIcmpError()
[all …]
Ddhcp6_client.cpp409 SuccessOrExit(aMessage.Read(aMessage.GetOffset(), header)); in HandleUdpReceive()
463 SuccessOrExit(aMessage.Read(static_cast<uint16_t>(offset), option)); in FindOption()
482 SuccessOrExit(aMessage.Read(aOffset, option)); in ProcessServerIdentifier()
501 SuccessOrExit(error = aMessage.Read(aOffset, option)); in ProcessClientIdentifier()
517 SuccessOrExit(error = aMessage.Read(aOffset, option)); in ProcessIaNa()
551 SuccessOrExit(error = aMessage.Read(aOffset, option)); in ProcessStatusCode()
564 SuccessOrExit(error = aMessage.Read(aOffset, option)); in ProcessIaAddress()
Ddhcp6_server.cpp188 SuccessOrExit(aMessage.Read(aMessage.GetOffset(), header)); in HandleUdpReceive()
243 SuccessOrExit(aMessage.Read(aOffset, option)); in FindOption()
260 SuccessOrExit(error = aMessage.Read(aOffset, aClientId)); in ProcessClientIdentifier()
274 SuccessOrExit(error = aMessage.Read(aOffset, option)); in ProcessElapsedTime()
286 SuccessOrExit(error = aMessage.Read(aOffset, aIaNa)); in ProcessIaNa()
313 SuccessOrExit(error = aMessage.Read(aOffset, option)); in ProcessIaAddress()
Dip6_mpl.cpp100 SuccessOrExit(error = aMessage.Read(aOffset, &option, MplOption::kMinSize)); in ProcessOption()
111 SuccessOrExit(error = aMessage.Read(aOffset, option)); in ProcessOption()
357 IgnoreError(aMessage.Read(Header::kHopLimitFieldOffset, hopLimit)); in AddBufferedMessage()
461 IgnoreError(aMessage.Read(length - sizeof(*this), *this)); in ReadFrom()
Ddns_types.cpp573 SuccessOrExit(error = mMessage.Read(mNextLabelOffset, labelLength)); in GetNextLabel()
605 SuccessOrExit(error = mMessage.Read(mNextLabelOffset, pointerValue)); in GetNextLabel()
637 SuccessOrExit(error = mMessage.Read(mLabelStartOffset, aLabelBuffer, mLabelLength)); in ReadLabel()
937 IgnoreError(aMessage.Read(aOffset, &aRecord, aMinRecordSize)); in ReadRecord()
1022 SuccessOrExit(error = aMessage.Read(aOffset, *this)); in ReadFrom()
1254 SuccessOrExit(error = aMessage.Read(aOffset, this, sizeof(Option))); in ReadFrom()
1264 … IgnoreError(aMessage.Read(aOffset, this, Min(size, static_cast<uint16_t>(sizeof(LeaseOption))))); in ReadFrom()
1315 SuccessOrExit(error = aMessage.Read(aOffset, aTxtBuffer, Min(GetLength(), aTxtBufferSize))); in ReadTxtData()
Dicmp6.cpp136 SuccessOrExit(error = aMessage.Read(aMessage.GetOffset(), icmp6Header)); in HandleMessage()
218 IgnoreError(replyMessage->Read(replyMessage->GetOffset(), icmp6Header)); in HandleEchoRequest()
/openthread-3.7.0/src/core/api/
Ddataset_api.cpp52 return AsCoreType(aInstance).Get<MeshCoP::ActiveDatasetManager>().Read(AsCoreType(aDataset)); in otDatasetGetActive()
59 return AsCoreType(aInstance).Get<MeshCoP::ActiveDatasetManager>().Read(*aDataset); in otDatasetGetActiveTlvs()
78 return AsCoreType(aInstance).Get<MeshCoP::PendingDatasetManager>().Read(AsCoreType(aDataset)); in otDatasetGetPending()
85 return AsCoreType(aInstance).Get<MeshCoP::PendingDatasetManager>().Read(*aDataset); in otDatasetGetPendingTlvs()
/openthread-3.7.0/src/core/coap/
Dcoap_message.cpp367 IgnoreError(Read(GetHelpData().mHeaderOffset, GetHelpData().mHeader)); in ParseHeader()
515 error = Read(sizeof(uint8_t), &headerByte); in Advance()
589 Error Option::Iterator::Read(uint16_t aLength, void *aBuffer) in Read() function in ot::Coap::Option::Iterator
597 SuccessOrExit(error = GetMessage().Read(mNextOptionOffset, aBuffer, aLength)); in Read()
614 SuccessOrExit(error = Read(sizeof(uint8_t), &value8)); in ReadExtendedOptionField()
621 SuccessOrExit(error = Read(sizeof(uint16_t), &value16)); in ReadExtendedOptionField()

1234