ImmutableBlob

Deprecated

Warning since 1.9

Use ByteArray instead.

An immutable compile-time array of bytes.

Since Kotlin

1.3

Properties

Link copied to clipboard
val size: Int
Since Kotlin 1.3

Functions

Link copied to clipboard

Returns stable C pointer to data at certain offset, useful as a way to pass resource to C APIs.

Since Kotlin 1.3
Link copied to clipboard

Returns stable C pointer to data at certain offset, useful as a way to pass resource to C APIs.

Since Kotlin 1.3
Link copied to clipboard
operator external fun get(index: Int): Byte
Since Kotlin 1.3
Link copied to clipboard
operator fun iterator(): ByteIterator

Creates an iterator over the elements of the array.

Since Kotlin 1.3
Link copied to clipboard
external fun ImmutableBlob.toByteArray(startIndex: Int = 0, endIndex: Int = size): ByteArray

Copies the data from this blob into a new ByteArray.

Since Kotlin 1.3
Link copied to clipboard
external fun ImmutableBlob.toUByteArray(startIndex: Int = 0, endIndex: Int = size): UByteArray

Copies the data from this blob into a new UByteArray.

Since Kotlin 1.3