class ImmutableBlob
An immutable compile-time array of bytes.
val size: Int
operator fun get(index: Int): Byte
Creates an iterator over the elements of the array.
operator fun iterator(): ByteIterator
Returns stable C pointer to data at certain offset, useful as a way to pass resource to C APIs.
fun ImmutableBlob.asCPointer( offset: Int = 0 ): CPointer<ByteVar>
fun ImmutableBlob.asUCPointer( offset: Int = 0 ): CPointer<UByteVar>
Copies the data from this blob into a new ByteArray.
fun ImmutableBlob.toByteArray( startIndex: Int = 0, endIndex: Int = size ): ByteArray
Copies the data from this blob into a new UByteArray.
fun ImmutableBlob.toUByteArray( startIndex: Int = 0, endIndex: Int = size ): UByteArray
© 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/-immutable-blob/index.html