# DownloadRequest.ByteRange

Artifact: [androidx.media3:media3-exoplayer](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/offline/DownloadRequest.java+class:androidx.media3.exoplayer.offline.DownloadRequest.ByteRange)

*** ** * ** ***


```
public final class DownloadRequest.ByteRange implements Parcelable
```

<br />

*** ** * ** ***

Defines the byte range.

## Summary

| ### Constants |
|---|---|
| `static final https://developer.android.com/reference/android/os/Parcelable.Creator.html<https://developer.android.com/reference/androidx/media3/exoplayer/offline/DownloadRequest.ByteRange>` | `https://developer.android.com/reference/androidx/media3/exoplayer/offline/DownloadRequest.ByteRange#CREATOR()` |

| ### Public fields |
|---|---|
| `final long` | `https://developer.android.com/reference/androidx/media3/exoplayer/offline/DownloadRequest.ByteRange#length()` The length of the byte range. |
| `final long` | `https://developer.android.com/reference/androidx/media3/exoplayer/offline/DownloadRequest.ByteRange#offset()` The offset of the byte range. |

| ### Public methods |
|---|---|
| `int` | `https://developer.android.com/reference/androidx/media3/exoplayer/offline/DownloadRequest.ByteRange#describeContents()()` |
| `boolean` | `https://developer.android.com/reference/androidx/media3/exoplayer/offline/DownloadRequest.ByteRange#equals(java.lang.Object)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Object.html o)` |
| `int` | `https://developer.android.com/reference/androidx/media3/exoplayer/offline/DownloadRequest.ByteRange#hashCode()()` |
| `void` | `https://developer.android.com/reference/androidx/media3/exoplayer/offline/DownloadRequest.ByteRange#writeToParcel(android.os.Parcel,int)(https://developer.android.com/reference/android/os/Parcel.html dest, int flags)` |

| ### Inherited Constants |
|---|
| From [android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) |---|---| | `static final int` | `https://developer.android.com/reference/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR = 1` | | `static final int` | `https://developer.android.com/reference/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE = 1` | |

## Constants

### CREATOR

```
public static final Parcelable.Creator<DownloadRequest.ByteRange> CREATOR
```

## Public fields

### length

```
public final long length
```

The length of the byte range.

### offset

```
public final long offset
```

The offset of the byte range.

## Public methods

### describeContents

```
public int describeContents()
```

### equals

```
public boolean equals(@Nullable Object o)
```

### hashCode

```
public int hashCode()
```

### writeToParcel

```
public void writeToParcel(Parcel dest, int flags)
```