Package-level declarations

Functions

Link copied to clipboard
inline fun <T> arrayForEachIndexed(array: Array<T>, block: (index: Int, value: T) -> Unit)
Link copied to clipboard
inline fun <T : Any> arrayJoinToString(array: Array<T>, separator: CharSequence, crossinline transform: (T) -> Any): String
Link copied to clipboard
inline fun arraySize(array: Array<*>): Int
inline fun arraySize(array: ByteArray): Int
Link copied to clipboard
actual fun asInt8Array(array: ByteArray): Int8Array<*>

Casts array to Int8Array if possible.

actual fun asInt8Array(array: ByteArray): Int8Array<*>

Casts array to Int8Array if possible.

expect fun asInt8Array(array: ByteArray): Int8Array<*>

Casts array to Int8Array if possible.

Link copied to clipboard
actual fun Int8Array<*>.copyFrom(source: ByteArray, sourceOffset: Int)

Copies bytes from source at sourceOffset to this Int8Array.

actual fun Int8Array<*>.copyFrom(source: ByteArray, sourceOffset: Int)

Copies bytes from source at sourceOffset to this Int8Array.

expect fun Int8Array<*>.copyFrom(source: ByteArray, sourceOffset: Int)

Copies bytes from source at sourceOffset to this Int8Array.

Link copied to clipboard
actual fun Int8Array<*>.copyTo(target: ByteArray, targetOffset: Int)

Copies this Int8Array bytes to target starting at targetOffset.

actual fun Int8Array<*>.copyTo(target: ByteArray, targetOffset: Int)

Copies this Int8Array bytes to target starting at targetOffset.

expect fun Int8Array<*>.copyTo(target: ByteArray, targetOffset: Int)

Copies this Int8Array bytes to target starting at targetOffset.

Link copied to clipboard
external fun getMember(instance: JsAny, property: String): JsAny?

Returns the property of an object instance.

Link copied to clipboard
inline fun <T : JsAny?> jsArrayOf(element: T): ReadonlyArray<T>

Returns a JsArray with only a single element.

Link copied to clipboard
operator fun JsBigInt.plus(value: Int): JsBigInt
operator fun JsBigInt.plus(value: Long): JsBigInt

Returns a JsBigInt which is the sum of this + value.

Link copied to clipboard
inline fun toByteArray(array: Int8Array<*>): ByteArray

Converts array to ByteArray.

Link copied to clipboard
actual fun toInt8Array(array: ByteArray, size: Int): Int8Array<*>

Converts or casts array to Int8Array retaining only first size bytes.

actual fun toInt8Array(array: ByteArray, size: Int): Int8Array<*>

Converts or casts array to Int8Array retaining only first size bytes.

expect fun toInt8Array(array: ByteArray, size: Int): Int8Array<*>

Converts or casts array to Int8Array retaining only first size bytes.

Link copied to clipboard
inline fun <T : JsAny?> toJsArray(array: Array<T>): ReadonlyArray<T>

Returns the array as JsArray.