A vector of bits growing if necessary and allowing one to set/clear/read bits from it by a bit index.
An immutable compile-time array of bytes.
Exception thrown when top level variable is accessed from incorrect execution context.
class IncorrectDereferenceException : RuntimeException
Typealias describing custom exception reporting hook.
typealias ReportUnhandledExceptionHook = (Throwable) -> Unit
Makes top level function available from C/C++ code with the given name.
annotation class CName
Preserve the function entry point during global optimizations.
annotation class Retain
Forces the compiler to use specified symbol name for the target
annotation class SymbolName
This annotation indicates what exceptions should be declared by a function when compiled to a platform method.
annotation class Throws
Deinitializes Kotlin runtime for the current thread, if was inited.
Initializes Kotlin runtime for the current thread, if not inited already.
Install custom unhandled exception hook. Returns old hook, or null if it was not specified. Hook is invoked whenever there's uncaught exception reaching boundaries of the Kotlin world, i.e. top level main(), or when Objective-C to Kotlin call not marked with @Throws throws an exception. Hook must be a frozen lambda, so that it could be called from any thread/worker. Hook is invoked once, and is cleared afterwards, so that memory leak detection works as expected even with custom exception hooks.