ot::Message::CompareBytes() const method
Compares the bytes in the message at a given offset with a given byte array. If there are fewer bytes available in the message than the requested @p aLength, the comparison is treated as failure (returns FALSE).
Arguments
aOffset
Byte offset within the message to read from for the comparison.
aBuf
A pointer to a data buffer to compare with the bytes from message.
aLength
Number of bytes in @p aBuf.
aMatcher
A `ByteMatcher` function pointer to match the bytes. If `nullptr` then bytes are directly compared.
Return value
TRUE if there are enough bytes available in @p aMessage and they match the bytes from @p aBuf, FALSE otherwise.
![]()
bool CompareBytes(uint16_t aOffset,
ot::Message::CompareBytes() const is called by 1 function and calls 2 functions:
![]()
ot::Message::CompareBytes() const
ot::Message::CompareBytes() const:
![]()
ot::Message::CompareBytes() const