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

aBuffer [out] A pointer to a buffer where to copy the name into.
aMaxSize [in] Size of (maximum number of chars to write into
void NameData (const char * aBuffer, uint8_t aLength)

Initializes the NameData object.

Parameters

aBuffer [in] A pointer to a `char` buffer (does not need to be null terminated).
aLength [in] The length (number of chars) in the buffer.

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