Package-level declarations

Types

Link copied to clipboard
abstract class MemoryAllocator

WebAssembly linear memory allocator.

Since Kotlin 1.8
abstract class MemoryAllocator

WebAssembly linear memory allocator.

Since Kotlin 1.8
Link copied to clipboard
value class Pointer(val address: UInt)

Linear memory pointer type. Corresponds to i32 type on 32-bit Wasm architecture.

Since Kotlin 1.8
value class Pointer(val address: UInt)

Linear memory pointer type. Corresponds to i32 type on 32-bit Wasm architecture.

Since Kotlin 1.8
Link copied to clipboard
annotation class UnsafeWasmMemoryApi

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

Since Kotlin 1.8
annotation class UnsafeWasmMemoryApi

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

Since Kotlin 1.8

Functions

Link copied to clipboard
inline fun <T> withScopedMemoryAllocator(block: (allocator: MemoryAllocator) -> T): T

Runs the block of code, providing it a temporary MemoryAllocator as an argument, and returns the result of this block.

Since Kotlin 1.8
inline fun <T> withScopedMemoryAllocator(block: (allocator: MemoryAllocator) -> T): T

Runs the block of code, providing it a temporary MemoryAllocator as an argument, and returns the result of this block.

Since Kotlin 1.8