ot::Message::PrependBytes() method
Prepends bytes to the front of the message. On success, this method grows the message by @p aLength bytes.
Arguments
aBuf
A pointer to a data buffer (can be `nullptr` to grow message without writing bytes).
aLength
The number of bytes to prepend.
Return value
kErrorNone Successfully prepended the bytes. kErrorNoBufs Not enough reserved bytes in the message.