ot::Heap::String::Set() method
Sets the string from a given C string.
Arguments
aCString
A pointer to c string buffer. Can be `nullptr` which then frees the `String`.
Return value
kErrorNone Successfully set the string. kErrorNoBufs Failed to allocate buffer for string.