Searched refs:NameData (Results 1 – 9 of 9) sorted by relevance
/openthread-3.4.0/tests/unit/ |
D | test_network_name.cpp | 62 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/ |
D | network_name.cpp | 43 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()
|
D | network_name.hpp | 58 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);
|
D | meshcop_tlvs.cpp | 119 NameData NetworkNameTlv::GetNetworkName(void) const in GetNetworkName() 128 return NameData(mNetworkName, len); in GetNetworkName() 131 void NetworkNameTlv::SetNetworkName(const NameData &aNameData) in SetNetworkName()
|
D | dataset.hpp | 319 void SetNetworkName(const NameData &aNetworkNameData) in SetNetworkName()
|
D | meshcop_tlvs.hpp | 537 NameData GetNetworkName(void) const; 545 void SetNetworkName(const NameData &aNameData);
|
D | dataset_manager_ftd.cpp | 353 NameData nameData = Get<NetworkNameManager>().GetNetworkName().GetAsData(); in GenerateLocal()
|
D | dataset.cpp | 338 NameData nameData = aDatasetInfo.GetNetworkName().GetAsData(); in SetFrom()
|
/openthread-3.4.0/src/core/mac/ |
D | mac_frame.hpp | 1678 …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()
|