class NameData
Defined at line 56 of file ../../third_party/openthread/src/core/meshcop/network_name.hpp
Represents a name string as data (pointer to a char buffer along with a length).
Public Methods
uint8_t CopyTo (char * aBuffer, uint8_t aMaxSize)
Copies the name data into a given char buffer with a given size.
The given buffer is cleared (`memset` to zero) before copying the name into it. The copied string
in
is NOT necessarily null terminated.
Parameters
void NameData (const char * aBuffer, uint8_t aLength)
Initializes the NameData object.
Parameters
Defined at line 67 of file ../../third_party/openthread/src/core/meshcop/network_name.hpp
const char * GetBuffer ()
Returns the pointer to char buffer (not necessarily null terminated).
Defined at line 74 of file ../../third_party/openthread/src/core/meshcop/network_name.hpp
uint8_t GetLength ()
Returns the length (number of chars in buffer).
Defined at line 81 of file ../../third_party/openthread/src/core/meshcop/network_name.hpp
Friends
class NetworkName