Package-level declarations
Types
Makes top level function available from C/C++ code with the given name.
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".
Exception thrown when there was an error during file initalization.
Exception thrown when top level variable is accessed from incorrect execution context.
Typealias describing custom exception reporting hook.
Preserve the function entry point during global optimizations.
Preserve the function entry point during global optimizations, only for the given target.
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.
Functions
Returns stable C pointer to data at certain offset, useful as a way to pass resource to C APIs.
Deinitializes Kotlin runtime for the current thread, if was inited. Cannot be called from Kotlin frames holding references, thus deprecated.
Returns a list of stack trace addresses representing the stack trace pertaining to this throwable.
Returns a user-defined uncaught exception handler set by setUnhandledExceptionHook or null
if no user-defined handlers were set.
Compute stable wrt potential object relocations by the memory manager identity hash code.
Creates ImmutableBlob out of compile-time constant data.
Initializes Kotlin runtime for the current thread, if not inited already.
Performs the default processing of unhandled exception.
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.
Copies the data from this blob into a new ByteArray.
Copies the data from this blob into a new UByteArray.