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])
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

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

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

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
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class SymbolName(val name: String)

This annotation is deprecated and became internal. Please avoid using it. It is dangerous when combined with the new experimental memory manager. If you absolutely need to use the annotation, please comment at KT-46649.

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