ot::Data::InitFromRange() method
Initializes the `Data` to point to a range of bytes in a given buffer. The range is specified by the pointers to its start @p aStart and its end @p aEnd. `Data` will point to the bytes in the buffer from @p aStart up to but excluding @p aEnd (i.e., `aStart <= bytes < aEnd`).
Syntax
void InitFromRange(const uint8_t *aStart,
const uint8_t *aEnd);
Arguments
aStart
Pointer to the start of the range.
aEnd
Pointer to the end of the range.