UnsafeWasmMemoryApi

annotation class UnsafeWasmMemoryApi(source)

This annotation marks APIs for working with unmanaged WebAssembly linear memory.

Any usage of a declaration annotated with @UnsafeWasmMemoryApi must be accepted either by annotating that usage with the OptIn annotation, e.g. @OptIn(UnsafeWasmMemoryApi::class), or by using the compiler argument -opt-in=kotlin.wasm.unsafe.UnsafeWasmMemoryApi.

Since Kotlin

1.8
annotation class UnsafeWasmMemoryApi(source)

This annotation marks APIs for working with unmanaged WebAssembly linear memory.

Any usage of a declaration annotated with @UnsafeWasmMemoryApi must be accepted either by annotating that usage with the OptIn annotation, e.g. @OptIn(UnsafeWasmMemoryApi::class), or by using the compiler argument -opt-in=kotlin.wasm.unsafe.UnsafeWasmMemoryApi.

Since Kotlin

1.8