---
title: "extracting(_:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/rawspan/extracting(_:)-3elv4"
---

# extracting(_:)

Constructs a new span over all the bytes of this span.

## Declaration

```swift
func extracting(_: UnboundedRange) -> RawSpan
```

## Return Value

Return Value A span over all the bytes of this span.

## Discussion

Discussion 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. note: O(1)
