---
title: "init(offset:length:)"
framework: avfoundation
role: symbol
role_heading: Initializer
path: "avfoundation/avsamplecursorstoragerange/init(offset:length:)"
---

# init(offset:length:)

Creates a storage range structure with offset and length values.

## Declaration

```swift
init(offset: Int64, length: Int64)
```

## Parameters

- `offset`: The offset of the first byte of storage that a media sample or its chunk occupies.
- `length`: The number of storage bytes that a media sample or its chunk occupies.
