ot::Message::Read() const method
Reads a given number of bytes from the message.
Arguments
aOffset
Byte offset within the message to begin reading.
aBuf
A pointer to a data buffer to copy the read bytes into.
aLength
Number of bytes to read.
Return value
kErrorNone @p aLength bytes were successfully read from message. kErrorParse Not enough bytes remaining in message to read the entire object.