# DownloadRequest.ByteRange

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/exoplayer/offline/DownloadRequest.ByteRange "View this page in Java")

<br />

```
class DownloadRequest.ByteRange : Parcelable
```

<br />

*** ** * ** ***

Defines the byte range.

## Summary

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

|                                ### Public functions                                 |
|-------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | [describeContents](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/offline/DownloadRequest.ByteRange#describeContents())`()`                                                                                                                                                                                       |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/offline/DownloadRequest.ByteRange#equals(java.lang.Object))`(o: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)`                                                                                                          |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | [hashCode](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/offline/DownloadRequest.ByteRange#hashCode())`()`                                                                                                                                                                                                       |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)       | [writeToParcel](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/offline/DownloadRequest.ByteRange#writeToParcel(android.os.Parcel,int))`(dest: `[Parcel](https://developer.android.com/reference/android/os/Parcel.html)`!, flags: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` |

|                             ### Public properties                             |
|-------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | [length](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/offline/DownloadRequest.ByteRange#length()) The length of the byte range. |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | [offset](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/offline/DownloadRequest.ByteRange#offset()) The offset of the byte range. |

|                                                                                                                                                                                                                                                                                                                                                                                           ### Inherited Constants                                                                                                                                                                                                                                                                                                                                                                                           |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[android.os.Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) |-------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------| | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [CONTENTS_FILE_DESCRIPTOR](https://developer.android.com/reference/android/os/Parcelable.html#CONTENTS_FILE_DESCRIPTOR())` = 1`           | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [PARCELABLE_WRITE_RETURN_VALUE](https://developer.android.com/reference/android/os/Parcelable.html#PARCELABLE_WRITE_RETURN_VALUE())` = 1` | |

## Constants

### CREATOR

```
const val CREATOR: Parcelable.Creator<DownloadRequest.ByteRange!>!
```  

## Public functions

### describeContents

```
fun describeContents(): Int
```  

### equals

```
fun equals(o: Any?): Boolean
```  

### hashCode

```
fun hashCode(): Int
```  

### writeToParcel

```
fun writeToParcel(dest: Parcel!, flags: Int): Unit
```  

## Public properties

### length

```
val length: Long
```

The length of the byte range.  

### offset

```
val offset: Long
```

The offset of the byte range.