ot::MeshCoP::NameData::CopyTo() const method
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 @p aBuffer is NOT necessarily null terminated.
Arguments
aBuffer
A pointer to a buffer where to copy the name into.
aMaxSize
Size of @p aBuffer (maximum number of chars to write into @p aBuffer).
Return value
The actual number of chars copied into @p aBuffer.