Package-level declarations

Types

Link copied to clipboard
class BitSet(size: Int = ELEMENT_SIZE)

A vector of bits growing if necessary and allowing one to set/clear/read bits from it by a bit index.

Since Kotlin 1.3
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
expect annotation class CName(val externName: String = "", val shortName: String = "")

Makes top level function available from C/C++ code with the given name.

Since Kotlin 1.5
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
actual annotation class CName(val externName: String = "", val shortName: String = "")

Makes top level function available from C/C++ code with the given name.

Since Kotlin 1.3
Link copied to clipboard

Central Processor Unit architecture.

Since Kotlin 1.3
Link copied to clipboard

Forces a top-level property to be initialized eagerly, opposed to lazily on the first access to file and/or property. This annotation can be used as temporal migration assistance during the transition from the previous Kotlin/Native initialization scheme "eager by default" to the new one, "lazy by default".

Since Kotlin 1.3
Link copied to clipboard

Exception thrown when there was an error during file initalization.

Since Kotlin 1.3
Link copied to clipboard

Instructs the Kotlin compiler to remove this function or property from the public Objective-C API.

Since Kotlin 1.0

Instructs the Kotlin compiler to remove this function or property from the public Objective-C API.

Since Kotlin 1.3
Link copied to clipboard

Meta-annotation that instructs the Kotlin compiler to remove the annotated function or property from the public Objective-C API.

Since Kotlin 1.0

Meta-annotation that instructs the Kotlin compiler to remove the annotated function or property from the public Objective-C API.

Since Kotlin 1.3
Link copied to clipboard

An immutable compile-time array of bytes.

Since Kotlin 1.3
Link copied to clipboard

Exception thrown when top level variable is accessed from incorrect execution context.

Since Kotlin 1.3
Link copied to clipboard

Memory model.

Since Kotlin 1.3
Link copied to clipboard
expect annotation class ObjCName(val name: String = "", val swiftName: String = "", val exact: Boolean = false)

Instructs the Kotlin compiler to use a custom Objective-C and/or Swift name for this class, property, parameter or function.

Since Kotlin 1.0
actual annotation class ObjCName(val name: String = "", val swiftName: String = "", val exact: Boolean = false)

Instructs the Kotlin compiler to use a custom Objective-C and/or Swift name for this class, property, parameter or function.

Since Kotlin 1.3
Link copied to clipboard

Operating system family.

Since Kotlin 1.3
Link copied to clipboard
object Platform

Object describing the current platform program executes upon.

Since Kotlin 1.3
Link copied to clipboard

Meta-annotation that instructs the Kotlin compiler to mark the annotated function or property as swift_private in the generated Objective-C API.

Since Kotlin 1.0

Meta-annotation that instructs the Kotlin compiler to mark the annotated function or property as swift_private in the generated Objective-C API.

Since Kotlin 1.3
Link copied to clipboard

Typealias describing custom exception reporting hook.

Since Kotlin 1.3
Link copied to clipboard
annotation class Retain

Preserve the function entry point during global optimizations.

Since Kotlin 1.3
Link copied to clipboard
annotation class RetainForTarget(val target: String)

Preserve the function entry point during global optimizations, only for the given target.

Since Kotlin 1.3
Link copied to clipboard

Instructs the Kotlin compiler to mark this function or property as swift_private in the generated Objective-C API.

Since Kotlin 1.0

Instructs the Kotlin compiler to mark this function or property as swift_private in the generated Objective-C API.

Since Kotlin 1.3
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class SymbolName(val name: String)

This is a dangerous deprecated and internal annotation. Please avoid using it.

Since Kotlin 1.3
Link copied to clipboard
class Vector128
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
Since Kotlin 1.3
Link copied to clipboard
external fun deinitRuntimeIfNeeded()

Deinitializes Kotlin runtime for the current thread, if was inited. Cannot be called from Kotlin frames holding references, thus deprecated.

Since Kotlin 1.3
Link copied to clipboard
external fun ByteArray.getCharAt(index: Int): Char

Gets Char out of the ByteArray byte buffer at specified index index

Since Kotlin 1.3
Link copied to clipboard
external fun ByteArray.getDoubleAt(index: Int): Double

Gets Double out of the ByteArray byte buffer at specified index index

Since Kotlin 1.3
Link copied to clipboard
external fun ByteArray.getFloatAt(index: Int): Float

Gets Float out of the ByteArray byte buffer at specified index index

Since Kotlin 1.3
Link copied to clipboard
external fun ByteArray.getIntAt(index: Int): Int

Gets Int out of the ByteArray byte buffer at specified index index

Since Kotlin 1.3
Link copied to clipboard
external fun ByteArray.getLongAt(index: Int): Long

Gets Long out of the ByteArray byte buffer at specified index index

Since Kotlin 1.3
Link copied to clipboard
external fun ByteArray.getShortAt(index: Int): Short

Gets Short out of the ByteArray byte buffer at specified index index

Since Kotlin 1.3
Link copied to clipboard

Returns a list of stack trace addresses representing the stack trace pertaining to this throwable.

Since Kotlin 1.3
Link copied to clipboard

Gets UByte out of the ByteArray byte buffer at specified index index

Since Kotlin 1.3
Link copied to clipboard

Gets UInt out of the ByteArray byte buffer at specified index index

Since Kotlin 1.3
Link copied to clipboard

Gets ULong out of the ByteArray byte buffer at specified index index

Since Kotlin 1.3
Link copied to clipboard

Returns a user-defined unhandled exception hook set by setUnhandledExceptionHook or null if no user-defined hooks were set.

Since Kotlin 1.6
Link copied to clipboard

Gets UShort out of the ByteArray byte buffer at specified index index

Since Kotlin 1.3
Link copied to clipboard
external fun Any?.identityHashCode(): Int

Compute stable wrt potential object relocations by the memory manager identity hash code.

Since Kotlin 1.3
Link copied to clipboard
external fun immutableBlobOf(vararg elements: Short): ImmutableBlob

Creates ImmutableBlob out of compile-time constant data.

Since Kotlin 1.3
Link copied to clipboard
external fun initRuntimeIfNeeded()

Initializes Kotlin runtime for the current thread, if not inited already.

Since Kotlin 1.3
Link copied to clipboard
Since Kotlin 1.3
Link copied to clipboard

Performs the default processing of unhandled exception.

Since Kotlin 1.6
Link copied to clipboard
external fun ByteArray.setCharAt(index: Int, value: Char)

Sets Char out of the ByteArray byte buffer at specified index index

Since Kotlin 1.3
Link copied to clipboard
external fun ByteArray.setDoubleAt(index: Int, value: Double)

Sets Double out of the ByteArray byte buffer at specified index index

Since Kotlin 1.3
Link copied to clipboard
external fun ByteArray.setFloatAt(index: Int, value: Float)

Sets Float out of the ByteArray byte buffer at specified index index

Since Kotlin 1.3
Link copied to clipboard
external fun ByteArray.setIntAt(index: Int, value: Int)

Sets Int out of the ByteArray byte buffer at specified index index

Since Kotlin 1.3
Link copied to clipboard
external fun ByteArray.setLongAt(index: Int, value: Long)

Sets Long out of the ByteArray byte buffer at specified index index

Since Kotlin 1.3
Link copied to clipboard
external fun ByteArray.setShortAt(index: Int, value: Short)

Sets Short out of the ByteArray byte buffer at specified index index

Since Kotlin 1.3
Link copied to clipboard
external fun ByteArray.setUByteAt(index: Int, value: UByte)

Sets UByte out of the ByteArray byte buffer at specified index index

Since Kotlin 1.3
Link copied to clipboard
external fun ByteArray.setUIntAt(index: Int, value: UInt)

Sets UInt out of the ByteArray byte buffer at specified index index

Since Kotlin 1.3
Link copied to clipboard

Sets ULong out of the ByteArray byte buffer at specified index index

Since Kotlin 1.3
Link copied to clipboard

Installs an unhandled exception hook and returns an old hook, or null if no user-defined hooks were previously set.

Since Kotlin 1.3
Link copied to clipboard

Sets UShort out of the ByteArray byte buffer at specified index index

Since Kotlin 1.3
Link copied to clipboard
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
Link copied to clipboard
external fun vectorOf(f0: Float, f1: Float, f2: Float, f3: Float): Vector128
external fun vectorOf(f0: Int, f1: Int, f2: Int, f3: Int): Vector128
Since Kotlin 1.3