byteOffsets(of:)
Returns the byte offsets within this span where the memory represented by other is located, or nil if other is not located within this span.
Declaration
func byteOffsets(of other: borrowing RawSpan) -> Range<Int>?Parameters
- other:
A span that may be a subrange of
self
Return Value
A range of byte offsets within self, or nil.