ImmutableByteArray

An immutable array of bytes.

Constructors

Link copied to clipboard
constructor(size: Int)

Creates a new array of the specified size, with all elements initialized to zero.

constructor(size: Int, init: (Int) -> Byte)

Creates a new array of the specified size, where each element is calculated by calling the specified init function.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val size: Int

The number of elements in the array.

Functions

Link copied to clipboard
Link copied to clipboard
operator fun ImmutableByteArray.contains(element: Byte): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun ImmutableByteArray.copyInto(destination: ByteArray, destinationOffset: Int = 0, startIndex: Int = 0, endIndex: Int = size): ByteArray
Link copied to clipboard
Link copied to clipboard
operator fun get(index: Int): Byte

Returns the array element at the given index.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun iterator(): ByteIterator

Creates a specialized ByteIterator for iterating over the elements of the array.

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