ot::Message::ReadBytes() const method
Reads bytes from the message. The provided buffer @p aBuf MUST contain at least @p aLength bytes. If there are fewer bytes available in the message than the requested @p aLength, the available bytes are read and copied into @p aBuf. This method returns the actual number of bytes successfully read from the message and written into @p aBuf.
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
The number of bytes read.
ot::Message::ReadBytes() const is called by 13 functions and calls 5 functions:
![]()
ot::Message::ReadBytes() const
ot::Message::ReadBytes() const:
![]()
ot::Message::ReadBytes() const