Package-level declarations

Types

Link copied to clipboard
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
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
Link copied to clipboard

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

Since Kotlin 1.8

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

Since Kotlin 1.8
Link copied to clipboard

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

Since Kotlin 1.8

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

Since Kotlin 1.8
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.8
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.8
Link copied to clipboard

Operating system family.

Since Kotlin 1.3
Link copied to clipboard

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.8

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.8
Link copied to clipboard

Typealias describing custom exception reporting hook.

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.8

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

Since Kotlin 1.8
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
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

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

Since Kotlin 1.3
Link copied to clipboard

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

Since Kotlin 1.3
Link copied to clipboard

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

Since Kotlin 1.3
Link copied to clipboard

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

Since Kotlin 1.3
Link copied to clipboard

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

Since Kotlin 1.3
Link copied to clipboard

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

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

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