ot::Data::CopyBytesTo() const method
Copies the `Data` bytes to a given buffer. It is up to the caller to ensure that @p aBuffer has enough space for the current data length.
Syntax
void CopyBytesTo(void *aBuffer) const; Arguments
aBuffer
The buffer to copy the bytes into.