[android-components](../../index.md) / [mozilla.components.support.ktx.kotlin](../index.md) / [kotlin.ByteArray](./index.md)

### Extensions for kotlin.ByteArray

| Name | Summary |
|---|---|
| [containsAtOffset](contains-at-offset.md) | `fun `[`ByteArray`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)`.containsAtOffset(offset: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, test: `[`ByteArray`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)`): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)<br>Checks whether the given [test](contains-at-offset.md#mozilla.components.support.ktx.kotlin$containsAtOffset(kotlin.ByteArray, kotlin.Int, kotlin.ByteArray)/test) byte sequence exists at the [offset](contains-at-offset.md#mozilla.components.support.ktx.kotlin$containsAtOffset(kotlin.ByteArray, kotlin.Int, kotlin.ByteArray)/offset) of this [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) |
| [toBitmap](to-bitmap.md) | `fun `[`ByteArray`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)`.toBitmap(opts: `[`Options`](https://developer.android.com/reference/android/graphics/BitmapFactory/Options.html)`? = null): `[`Bitmap`](https://developer.android.com/reference/android/graphics/Bitmap.html)`?`<br>`fun `[`ByteArray`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)`.toBitmap(offset: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, length: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, opts: `[`Options`](https://developer.android.com/reference/android/graphics/BitmapFactory/Options.html)`? = null): `[`Bitmap`](https://developer.android.com/reference/android/graphics/Bitmap.html)`?` |
