ot::Data::MatchesBytesIn() method
Compares the `Data` content with the bytes from a given buffer using a given `Matcher` function. It is up to the caller to ensure that @p aBuffer has enough bytes to compare with the current data length.
Arguments
aBuffer
A pointer to a buffer to compare with the data.
aMatcher
A `ByteMatcher` function to match the bytes. If `nullptr`, bytes are compared directly.
Return value
TRUE The `Data` content matches the bytes in @p aBuffer. FALSE The `Data` content does not match the byes in @p aBuffer.