---
title: currentOffset
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avassetresourceloadingdatarequest/currentoffset
---

# currentOffset

The position within the resource of the next byte.

## Declaration

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

## Discussion

Discussion When incrementally loading data you should begin loading at this offset, returning the data by invoking the respond(with:) method. Bytes previous to this value have already been provided.

## See Also

### Providing data to a request

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