W3cubDocs

/Kotlin

toUByteArray

Platform and version requirements: Native (1.3)
@ExperimentalUnsignedTypes fun ImmutableBlob.toUByteArray(
    startIndex: Int = 0, 
    endIndex: Int = size
): UByteArray

Copies the data from this blob into a new UByteArray.

Parameters

startIndex - the beginning (inclusive) of the subrange to copy, 0 by default.

endIndex - the end (exclusive) of the subrange to copy, size of this blob by default.

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native/to-u-byte-array.html