ByteArrayView

A lightweight read-only view of a ByteArray.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun asInt(): Int
Link copied to clipboard
fun asShort(): Short
Link copied to clipboard

Creates a new ByteArrayView that's data contains only this view.

Link copied to clipboard
operator fun get(index: Int): Byte
Link copied to clipboard
open operator override fun iterator(): Iterator<Byte>
Link copied to clipboard
fun resize(start: Int = this.dataStart, end: Int = this.dataEnd): Boolean
Link copied to clipboard

Create a new ByteArray that's data contains only this view.

Link copied to clipboard
fun view(start: Int = dataStart, end: Int = dataEnd): ByteArrayView?