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.
![]()
template <typename ObjectType> Error Read(uint16_t aOffset, ObjectType &aObject) const![]()
template <typename ObjectType> Error Read(const OffsetRange &aOffsetRange, ObjectType &aObject) const
ot::Message::Read() const is called by 9 functions and calls 5 functions:
![]()
ot::Message::Read() const
ot::Message::Read() const reads 2 variables:
![]()
ot::Message::Read() const