ot::Message::InsertHeader() method
Grows the message to make space for new header bytes at a given offset. Grows the message header (similar to `PrependBytes()`). The existing header bytes from start to `aOffset + aLength` are then copied backward to make room for the new header bytes. Note that this method does not change the bytes from @p aOffset up @p aLength (the new inserted header range). Caller can write to this range to update the bytes after successful return from this method.
Arguments
aOffset
The offset at which to insert the header bytes
aLength
Number of header bytes to insert.
Return value
kErrorNone Successfully grown the message and copied the existing header bytes. kErrorNoBufs Insufficient available buffers to grow the message.
ot::Message::InsertHeader() is called by 1 function and calls 2 functions:
![]()
ot::Message::InsertHeader()
ot::Message::InsertHeader():
![]()
ot::Message::InsertHeader()