extracting(droppingFirst:)
Returns a span over all but the given number of initial bytes.
Declaration
func extracting(droppingFirst k: Int) -> RawSpanParameters
- k:
The number of bytes to drop from the beginning of the span.
kmust be greater than or equal to zero.
Return Value
A span starting after the specified number of bytes.
Discussion
If the number of elements to drop exceeds the number of bytes in the span, the result is an empty span.
The returned span’s first byte is always at offset 0; unlike buffer slices, extracted spans do not share their indices with the span from which they are extracted.