ot::Message::WriteBytesFromMessage() method
Writes bytes read from another or potentially the same message to the message at a given offset. Will not resize the message. The bytes to write (with @p aLength) MUST fit within the existing message buffer (from the given @p aWriteOffset up to the message's length). Can be used to copy bytes within the same message in either direction, i.e., copy forward where `aWriteOffset > aReadOffset` or copy backward where `aWriteOffset < aReadOffset`.
Arguments
aWriteOffset
Byte offset within this message to begin writing.
aMessage
The message to read the bytes from.
aReadOffset
The offset in @p aMessage to start reading the bytes from.
aLength
The number of bytes to read from @p aMessage and write.