toUByteArray

fun Array<out UByte>.toUByteArray(): UByteArray

Returns an array of UByte containing all of the elements of this generic array.

Since Kotlin

1.3

inline fun ByteArray.toUByteArray(): UByteArray

Returns an array of type UByteArray, which is a copy of this array where each element is an unsigned reinterpretation of the corresponding element of this array.

Since Kotlin

1.3

Returns an array of UByte containing all of the elements of this collection.

Since Kotlin

1.3