WasmMemoryPolicy

data class WasmMemoryPolicy(val maxBytesPerMemory: Long = 256L * 1024L * 1024L, val maxTotalBytes: Long = 512L * 1024L * 1024L, val maxMemories: Int = 16)

Bounds every WebAssembly memory owned by one instance.

maxTotalBytes is enforced against imported memory maxima plus the effective maxima assigned to defined memories, so growth cannot make the instance exceed the aggregate budget.

Constructors

Link copied to clipboard
constructor(maxBytesPerMemory: Long = 256L * 1024L * 1024L, maxTotalBytes: Long = 512L * 1024L * 1024L, maxMemories: Int = 16)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard