UByteArray

Constructors

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

Properties

Link copied to clipboard
external val size: Int

Functions

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

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

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

Returns a new array containing the same elements.

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

Returns a resized copy, padding extra elements with zero.

Link copied to clipboard
operator external fun get(index: Int): UByte
Link copied to clipboard
operator external fun iterator(): Iterator<UByte>
Link copied to clipboard
operator external fun set(index: Int, value: UByte)