Lines Matching refs:aDatasetInfo

184 void Dataset::ConvertTo(Info &aDatasetInfo) const  in ConvertTo()
186 aDatasetInfo.Clear(); in ConvertTo()
193 aDatasetInfo.SetActiveTimestamp(As<ActiveTimestampTlv>(cur)->GetTimestamp()); in ConvertTo()
197 aDatasetInfo.SetChannel(As<ChannelTlv>(cur)->GetChannel()); in ConvertTo()
206 aDatasetInfo.SetChannelMask(mask); in ConvertTo()
213 aDatasetInfo.SetDelay(As<DelayTimerTlv>(cur)->GetDelayTimer()); in ConvertTo()
217 aDatasetInfo.SetExtendedPanId(As<ExtendedPanIdTlv>(cur)->GetExtendedPanId()); in ConvertTo()
221 aDatasetInfo.SetMeshLocalPrefix(As<MeshLocalPrefixTlv>(cur)->GetMeshLocalPrefix()); in ConvertTo()
225 aDatasetInfo.SetNetworkKey(As<NetworkKeyTlv>(cur)->GetNetworkKey()); in ConvertTo()
229 aDatasetInfo.SetNetworkName(As<NetworkNameTlv>(cur)->GetNetworkName()); in ConvertTo()
233 aDatasetInfo.SetPanId(As<PanIdTlv>(cur)->GetPanId()); in ConvertTo()
237 aDatasetInfo.SetPendingTimestamp(As<PendingTimestampTlv>(cur)->GetTimestamp()); in ConvertTo()
241 aDatasetInfo.SetPskc(As<PskcTlv>(cur)->GetPskc()); in ConvertTo()
245 aDatasetInfo.SetSecurityPolicy(As<SecurityPolicyTlv>(cur)->GetSecurityPolicy()); in ConvertTo()
280 Error Dataset::SetFrom(const Info &aDatasetInfo) in SetFrom() argument
284 if (aDatasetInfo.IsActiveTimestampPresent()) in SetFrom()
288 aDatasetInfo.GetActiveTimestamp(activeTimestamp); in SetFrom()
292 if (aDatasetInfo.IsPendingTimestampPresent()) in SetFrom()
296 aDatasetInfo.GetPendingTimestamp(pendingTimestamp); in SetFrom()
300 if (aDatasetInfo.IsDelayPresent()) in SetFrom()
302 IgnoreError(SetTlv(Tlv::kDelayTimer, aDatasetInfo.GetDelay())); in SetFrom()
305 if (aDatasetInfo.IsChannelPresent()) in SetFrom()
309 tlv.SetChannel(aDatasetInfo.GetChannel()); in SetFrom()
313 if (aDatasetInfo.IsChannelMaskPresent()) in SetFrom()
317 tlv.SetChannelMask(aDatasetInfo.GetChannelMask()); in SetFrom()
321 if (aDatasetInfo.IsExtendedPanIdPresent()) in SetFrom()
323 IgnoreError(SetTlv(Tlv::kExtendedPanId, aDatasetInfo.GetExtendedPanId())); in SetFrom()
326 if (aDatasetInfo.IsMeshLocalPrefixPresent()) in SetFrom()
328 IgnoreError(SetTlv(Tlv::kMeshLocalPrefix, aDatasetInfo.GetMeshLocalPrefix())); in SetFrom()
331 if (aDatasetInfo.IsNetworkKeyPresent()) in SetFrom()
333 IgnoreError(SetTlv(Tlv::kNetworkKey, aDatasetInfo.GetNetworkKey())); in SetFrom()
336 if (aDatasetInfo.IsNetworkNamePresent()) in SetFrom()
338 NameData nameData = aDatasetInfo.GetNetworkName().GetAsData(); in SetFrom()
343 if (aDatasetInfo.IsPanIdPresent()) in SetFrom()
345 IgnoreError(SetTlv(Tlv::kPanId, aDatasetInfo.GetPanId())); in SetFrom()
348 if (aDatasetInfo.IsPskcPresent()) in SetFrom()
350 IgnoreError(SetTlv(Tlv::kPskc, aDatasetInfo.GetPskc())); in SetFrom()
353 if (aDatasetInfo.IsSecurityPolicyPresent()) in SetFrom()
358 tlv.SetSecurityPolicy(aDatasetInfo.GetSecurityPolicy()); in SetFrom()