W3cubDocs

/Kotlin

toByteArray

Platform and version requirements: Native (1.3)
fun ImmutableBlob.toByteArray(
    startIndex: Int = 0, 
    endIndex: Int = size
): ByteArray

Copies the data from this blob into a new ByteArray.

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-byte-array.html