ByteArray

Constructors

Link copied to clipboard
constructor(size: Int)
constructor(size: Int, init: (Int) -> Byte)

Properties

Link copied to clipboard
external val size: Int

Functions

Link copied to clipboard
external fun ByteArray.copyInto(destination: ByteArray, destinationOffset: Int = 0, startIndex: Int = 0, endIndex: Int = size): ByteArray

Copies this range into destination, supporting overlapping ranges, and returns it.

Link copied to clipboard
external fun ByteArray.copyOf(): ByteArray

Returns a new array containing the same elements.

external fun ByteArray.copyOf(newSize: Int): ByteArray

Returns a resized copy, padding extra elements with zero.

Link copied to clipboard
operator external fun get(index: Int): Byte
Link copied to clipboard
operator external fun iterator(): ByteIterator
Link copied to clipboard
operator external fun set(index: Int, value: Byte)