class NetworkName
Defined at line 100 of file ../../third_party/openthread/src/core/meshcop/network_name.hpp
Represents an Network Name.
Public Members
static const char *const kNetworkNameInit
static const char *const kDomainNameInit
static const uint8_t kMaxSize
Public Methods
void NetworkName ()
Initializes the Network Name as an empty string.
Defined at line 114 of file ../../third_party/openthread/src/core/meshcop/network_name.hpp
const char * GetAsCString ()
Gets the Network Name as a null terminated C string.
Defined at line 121 of file ../../third_party/openthread/src/core/meshcop/network_name.hpp
NameData GetAsData ()
Gets the Network Name as NameData.
Error Set (const char * aNameString)
Sets the Network Name from a given null terminated C string.
Also validates that the given
follows UTF-8 encoding and can fit in `kMaxSize`
chars.
Parameters
aNameString [in] A name C string.
Error Set (const NameData & aNameData)
Sets the Network Name.
Parameters
aNameData [in] A reference to name data.
bool operator== (const NetworkName & aOther)
Overloads operator `==` to evaluate whether or not two given `NetworkName` objects are equal.
Parameters
aOther [in] The other `NetworkName` to compare with.