Contents

byteOffsets(of:)

Returns the offsets where the memory of other is located within the memory represented by self

Declaration

func byteOffsets(of other: borrowing RawSpan) -> Range<Int>?

Parameters

  • other:

    A subrange of self

Return Value

A range of offsets within self

Discussion

Note: other must be a subrange of self