Home
last modified time | relevance | path

Searched refs:NameData (Results 1 – 9 of 9) sorted by relevance

/openthread-3.4.0/tests/unit/
Dtest_network_name.cpp62 SuccessOrQuit(networkName.Set(MeshCoP::NameData(kName1, sizeof(kName1)))); in TestNetworkName()
65 VerifyOrQuit(networkName.Set(MeshCoP::NameData(kName1, sizeof(kName1))) == kErrorAlready, in TestNetworkName()
69 VerifyOrQuit(networkName.Set(MeshCoP::NameData(kName1, sizeof(kName1) - 1)) == kErrorAlready, in TestNetworkName()
72 SuccessOrQuit(networkName.Set(MeshCoP::NameData(kName2, sizeof(kName2)))); in TestNetworkName()
75 SuccessOrQuit(networkName.Set(MeshCoP::NameData(kEmptyName, 0))); in TestNetworkName()
78 SuccessOrQuit(networkName.Set(MeshCoP::NameData(kLongName, sizeof(kLongName)))); in TestNetworkName()
81 …VerifyOrQuit(networkName.Set(MeshCoP::NameData(kLongName, sizeof(kLongName) - 1)) == kErrorAlready, in TestNetworkName()
84 SuccessOrQuit(networkName.Set(MeshCoP::NameData(kName1, sizeof(kName1)))); in TestNetworkName()
86 …VerifyOrQuit(networkName.Set(MeshCoP::NameData(kTooLongName, sizeof(kTooLongName))) == kErrorInval… in TestNetworkName()
109 SuccessOrQuit(networkName2.Set(MeshCoP::NameData(kName1, sizeof(kName1)))); in TestNetworkName()
/openthread-3.4.0/src/core/meshcop/
Dnetwork_name.cpp43 uint8_t NameData::CopyTo(char *aBuffer, uint8_t aMaxSize) const in CopyTo()
54 NameData NetworkName::GetAsData(void) const in GetAsData()
56 return NameData(m8, static_cast<uint8_t>(StringLength(m8, kMaxSize + 1))); in GetAsData()
73 NameData data(aNameString, kMaxSize + 1); in Set()
83 Error NetworkName::Set(const NameData &aNameData) in Set()
86 NameData data = aNameData; in Set()
123 Error NetworkNameManager::SetNetworkName(const NameData &aNameData) in SetNetworkName()
156 Error NetworkNameManager::SetDomainName(const NameData &aNameData) in SetDomainName()
Dnetwork_name.hpp58 class NameData : private Data<kWithUint8Length> class
70 NameData(const char *aBuffer, uint8_t aLength) { Init(aBuffer, aLength); } in NameData() function in ot::MeshCoP::NameData
139 NameData GetAsData(void) const;
166 Error Set(const NameData &aNameData);
231 Error SetNetworkName(const NameData &aNameData);
262 Error SetDomainName(const NameData &aNameData);
Dmeshcop_tlvs.cpp119 NameData NetworkNameTlv::GetNetworkName(void) const in GetNetworkName()
128 return NameData(mNetworkName, len); in GetNetworkName()
131 void NetworkNameTlv::SetNetworkName(const NameData &aNameData) in SetNetworkName()
Ddataset.hpp319 void SetNetworkName(const NameData &aNetworkNameData) in SetNetworkName()
Dmeshcop_tlvs.hpp537 NameData GetNetworkName(void) const;
545 void SetNetworkName(const NameData &aNameData);
Ddataset_manager_ftd.cpp353 NameData nameData = Get<NetworkNameManager>().GetNetworkName().GetAsData(); in GenerateLocal()
Ddataset.cpp338 NameData nameData = aDatasetInfo.GetNetworkName().GetAsData(); in SetFrom()
/openthread-3.4.0/src/core/mac/
Dmac_frame.hpp1678 …MeshCoP::NameData GetNetworkName(void) const { return MeshCoP::NameData(mNetworkName, sizeof(mNetw… in GetNetworkName()
1686 …void SetNetworkName(const MeshCoP::NameData &aNameData) { aNameData.CopyTo(mNetworkName, sizeof(mN… in SetNetworkName()