---
title: requestedOffset
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avassetresourceloadingdatarequest/requestedoffset
---

# requestedOffset

The position within the resource of the first byte requested.

## Declaration

```swift
var requestedOffset: Int64 { get }
```

## Discussion

Discussion When all of the requested bytes that can be provided have been loaded—including the possible contentInformationRequest data in the AVAssetResourceLoadingRequest instance that contains the receiver—the delegate should respond by invoking finishLoading(). If the requestedOffset value is beyond the content length of the resource, the AVAssetResourceLoadingRequest instance is sent a finishLoading() message without any prior invocations of respond(with:).

## See Also

### Providing data to a request

- [respond(with:)](avfoundation/avassetresourceloadingdatarequest/respond(with:).md)
- [requestedLength](avfoundation/avassetresourceloadingdatarequest/requestedlength.md)
- [currentOffset](avfoundation/avassetresourceloadingdatarequest/currentoffset.md)
- [requestsAllDataToEndOfResource](avfoundation/avassetresourceloadingdatarequest/requestsalldatatoendofresource.md)
