Index
All Classes and Interfaces|All Packages
A
- ai.tegmentum.webassembly4j.runtime - package ai.tegmentum.webassembly4j.runtime
- ai.tegmentum.webassembly4j.runtime.annotation - package ai.tegmentum.webassembly4j.runtime.annotation
- ai.tegmentum.webassembly4j.runtime.component - package ai.tegmentum.webassembly4j.runtime.component
- ai.tegmentum.webassembly4j.runtime.gc - package ai.tegmentum.webassembly4j.runtime.gc
-
WasmGC Object Bridge -- automatic marshalling between Java objects and WebAssembly GC struct instances.
- ai.tegmentum.webassembly4j.runtime.marshal - package ai.tegmentum.webassembly4j.runtime.marshal
- ai.tegmentum.webassembly4j.runtime.proxy - package ai.tegmentum.webassembly4j.runtime.proxy
- ai.tegmentum.webassembly4j.runtime.spi - package ai.tegmentum.webassembly4j.runtime.spi
- alignment() - Method in enum ai.tegmentum.webassembly4j.runtime.marshal.TypeLayout
-
Returns the alignment of this type in bytes.
- alignTo(int, int) - Static method in class ai.tegmentum.webassembly4j.runtime.marshal.CanonicalABI
-
Aligns an offset up to the given alignment boundary.
- allocate(int, int) - Method in class ai.tegmentum.webassembly4j.runtime.marshal.BumpAllocator
- allocate(int, int) - Method in interface ai.tegmentum.webassembly4j.runtime.marshal.MemoryAllocator
-
Allocates a block of memory with the given size and alignment.
- allocator() - Method in class ai.tegmentum.webassembly4j.runtime.marshal.MarshalContext
-
Returns the memory allocator.
B
- bind(Class<T>) - Method in class ai.tegmentum.webassembly4j.runtime.WasmInstance
- bind(Class<T>) - Method in class ai.tegmentum.webassembly4j.runtime.WasmModule
- BOOL - Enum constant in enum ai.tegmentum.webassembly4j.runtime.marshal.TypeLayout
- builder() - Static method in class ai.tegmentum.webassembly4j.runtime.WasmRuntime
- bump(int, int) - Static method in class ai.tegmentum.webassembly4j.runtime.marshal.MemoryAllocators
-
Creates a bump allocator for linear memory.
- BumpAllocator - Class in ai.tegmentum.webassembly4j.runtime.marshal
-
Simple bump allocator for WebAssembly linear memory.
- BumpAllocator(int, int) - Constructor for class ai.tegmentum.webassembly4j.runtime.marshal.BumpAllocator
-
Creates a bump allocator starting at the given offset.
C
- cabiRealloc(Function) - Static method in class ai.tegmentum.webassembly4j.runtime.marshal.MemoryAllocators
-
Creates an allocator backed by the
cabi_reallocfunction. - call(byte[], String, Class<R>, Object...) - Static method in class ai.tegmentum.webassembly4j.runtime.WasmRuntime
- call(byte[], String, Class<R>, Object...) - Method in class ai.tegmentum.webassembly4j.runtime.WasmRuntimeBuilder
- call(String, Class<R>, Object...) - Method in class ai.tegmentum.webassembly4j.runtime.WasmInstance
- call(String, Class<R>, Object...) - Method in class ai.tegmentum.webassembly4j.runtime.WasmModule
-
Invokes a function using a shared instance.
- callVoid(byte[], String, Object...) - Static method in class ai.tegmentum.webassembly4j.runtime.WasmRuntime
- callVoid(byte[], String, Object...) - Method in class ai.tegmentum.webassembly4j.runtime.WasmRuntimeBuilder
- callVoid(String, Object...) - Method in class ai.tegmentum.webassembly4j.runtime.WasmInstance
- callVoid(String, Object...) - Method in class ai.tegmentum.webassembly4j.runtime.WasmModule
-
Invokes a void function using a shared instance.
- CanonicalABI - Class in ai.tegmentum.webassembly4j.runtime.marshal
-
Static utilities for Component Model Canonical ABI layout calculations.
- close() - Method in class ai.tegmentum.webassembly4j.runtime.WasmInstance
- close() - Method in class ai.tegmentum.webassembly4j.runtime.WasmModule
- compile(byte[]) - Static method in class ai.tegmentum.webassembly4j.runtime.WasmRuntime
- compile(byte[]) - Method in class ai.tegmentum.webassembly4j.runtime.WasmRuntimeBuilder
- ComponentLowerer - Class in ai.tegmentum.webassembly4j.runtime.component
-
Extracts the first core WASM module from a component model binary.
- ComponentProxyFactory - Class in ai.tegmentum.webassembly4j.runtime.proxy
-
Creates interface proxies bound to a native
ComponentInstance. - create(Class<T>, Engine, Component, ComponentInstance) - Static method in class ai.tegmentum.webassembly4j.runtime.proxy.ComponentProxyFactory
- create(Class<T>, Engine, Module, Instance) - Static method in class ai.tegmentum.webassembly4j.runtime.proxy.ProxyFactory
- create(Class<T>, Engine, Module, Instance, GcExtension) - Static method in class ai.tegmentum.webassembly4j.runtime.gc.GcProxyFactory
-
Creates a proxy binding for the given interface using GC-based marshalling.
- create(Class<T>, Instance, Module, Engine) - Method in interface ai.tegmentum.webassembly4j.runtime.spi.WasmBindingProvider
- createFromComponent(Class<T>, ComponentInstance, Component, Engine) - Method in interface ai.tegmentum.webassembly4j.runtime.spi.WasmBindingProvider
-
Creates a binding from a native component instance.
- currentOffset() - Method in class ai.tegmentum.webassembly4j.runtime.marshal.BumpAllocator
-
Returns the current allocation offset (high-water mark).
D
- decode(Memory, int, int) - Static method in class ai.tegmentum.webassembly4j.runtime.marshal.StringCodec
-
Decodes a string from WebAssembly linear memory.
E
- encode(String, Memory, MemoryAllocator) - Static method in class ai.tegmentum.webassembly4j.runtime.marshal.StringCodec
-
Encodes a string into WebAssembly linear memory.
- engine(String) - Method in class ai.tegmentum.webassembly4j.runtime.WasmRuntimeBuilder
- engineConfig(EngineConfig) - Method in class ai.tegmentum.webassembly4j.runtime.WasmRuntimeBuilder
F
- F32 - Enum constant in enum ai.tegmentum.webassembly4j.runtime.marshal.TypeLayout
- F64 - Enum constant in enum ai.tegmentum.webassembly4j.runtime.marshal.TypeLayout
- fieldOffsets(TypeLayout...) - Static method in class ai.tegmentum.webassembly4j.runtime.marshal.CanonicalABI
-
Computes the byte offset of each field in a record.
- forExtension(GcExtension) - Static method in class ai.tegmentum.webassembly4j.runtime.gc.GcMarshaller
-
Creates a marshaller using the given GC extension and a new type mapper.
- forExtension(GcExtension, GcTypeMapper) - Static method in class ai.tegmentum.webassembly4j.runtime.gc.GcMarshaller
-
Creates a marshaller using the given GC extension and type mapper.
- free(int, int, int) - Method in class ai.tegmentum.webassembly4j.runtime.marshal.BumpAllocator
- free(int, int, int) - Method in interface ai.tegmentum.webassembly4j.runtime.marshal.MemoryAllocator
-
Frees a previously allocated block of memory.
- fromInstance(Instance) - Static method in class ai.tegmentum.webassembly4j.runtime.marshal.MarshalContext
-
Creates a MarshalContext from a WASM instance by resolving the default memory export and building an appropriate allocator.
- fromInstance(Instance) - Static method in class ai.tegmentum.webassembly4j.runtime.marshal.MemoryAllocators
-
Creates an allocator from a WASM instance by probing for known allocation exports.
- fromWasm(Object, Class<?>) - Static method in class ai.tegmentum.webassembly4j.runtime.proxy.TypeConverter
G
- GcMapped - Annotation Type in ai.tegmentum.webassembly4j.runtime.gc
-
Marks a Java class or record as mappable to a WebAssembly GC struct type.
- GcMarshaller - Class in ai.tegmentum.webassembly4j.runtime.gc
-
Marshals Java objects to and from WebAssembly GC struct instances.
- GcProxyFactory - Class in ai.tegmentum.webassembly4j.runtime.gc
-
Creates Java interface proxies that marshal method arguments and return values through WebAssembly GC struct types instead of linear memory.
- GcTypeMapper - Class in ai.tegmentum.webassembly4j.runtime.gc
-
Maps Java classes annotated with
GcMappedto WebAssembly GC struct types. - GcTypeMapper() - Constructor for class ai.tegmentum.webassembly4j.runtime.gc.GcTypeMapper
H
- HostFunctionScanner - Class in ai.tegmentum.webassembly4j.runtime.proxy
- hostObjects(Object...) - Method in class ai.tegmentum.webassembly4j.runtime.WasmRuntimeBuilder
I
- Interface Proxy Binding - Search tag in package ai.tegmentum.webassembly4j.runtime.gc
- Section
- isComplexType(Class<?>) - Static method in class ai.tegmentum.webassembly4j.runtime.proxy.TypeConverter
-
Returns true if the type requires marshalling through linear memory.
- isComponent(byte[]) - Static method in class ai.tegmentum.webassembly4j.runtime.component.WasmBinaryInfo
- isCoreModule(byte[]) - Static method in class ai.tegmentum.webassembly4j.runtime.component.WasmBinaryInfo
- isSupportedType(Class<?>) - Static method in class ai.tegmentum.webassembly4j.runtime.proxy.TypeConverter
- isVoid(Class<?>) - Static method in class ai.tegmentum.webassembly4j.runtime.proxy.TypeConverter
J
- javaTypeToValueType(Class<?>) - Static method in class ai.tegmentum.webassembly4j.runtime.proxy.TypeConverter
L
- Limitations - Search tag in package ai.tegmentum.webassembly4j.runtime.gc
- Section
- LIST - Enum constant in enum ai.tegmentum.webassembly4j.runtime.marshal.TypeLayout
-
A list is stored as (i32 pointer, i32 element_count).
- load(Class<T>, byte[]) - Static method in class ai.tegmentum.webassembly4j.runtime.WasmRuntime
- load(Class<T>, byte[]) - Method in class ai.tegmentum.webassembly4j.runtime.WasmRuntimeBuilder
- load(Class<T>, byte[], Object...) - Static method in class ai.tegmentum.webassembly4j.runtime.WasmRuntime
- lower(byte[]) - Static method in class ai.tegmentum.webassembly4j.runtime.component.ComponentLowerer
-
Extracts the first core module from a component binary.
M
- marshal(Object) - Method in class ai.tegmentum.webassembly4j.runtime.gc.GcMarshaller
-
Marshals a Java object to a GC struct instance.
- MarshalContext - Class in ai.tegmentum.webassembly4j.runtime.marshal
-
Bundles memory, allocator, writer and reader for marshalling complex types to and from WebAssembly linear memory.
- MarshalContext(Memory, MemoryAllocator) - Constructor for class ai.tegmentum.webassembly4j.runtime.marshal.MarshalContext
-
Creates a new MarshalContext.
- memory() - Method in class ai.tegmentum.webassembly4j.runtime.marshal.MarshalContext
-
Returns the linear memory.
- MemoryAllocator - Interface in ai.tegmentum.webassembly4j.runtime.marshal
-
Allocates and frees memory within WebAssembly linear memory.
- MemoryAllocators - Class in ai.tegmentum.webassembly4j.runtime.marshal
-
Factory for creating
MemoryAllocatorinstances. - MemoryReader - Class in ai.tegmentum.webassembly4j.runtime.marshal
-
Reads typed values from WebAssembly linear memory.
- MemoryReader(Memory) - Constructor for class ai.tegmentum.webassembly4j.runtime.marshal.MemoryReader
-
Creates a new MemoryReader.
- MemoryWriter - Class in ai.tegmentum.webassembly4j.runtime.marshal
-
Writes typed values to WebAssembly linear memory.
- MemoryWriter(Memory, MemoryAllocator) - Constructor for class ai.tegmentum.webassembly4j.runtime.marshal.MemoryWriter
-
Creates a new MemoryWriter.
- module() - Element in annotation type ai.tegmentum.webassembly4j.runtime.annotation.WasmImport
N
- name() - Element in annotation type ai.tegmentum.webassembly4j.runtime.annotation.WasmImport
- Nested Structs - Search tag in package ai.tegmentum.webassembly4j.runtime.gc
- Section
- newInstance() - Method in class ai.tegmentum.webassembly4j.runtime.WasmModule
-
Creates a new isolated instance of this module.
P
Q
- Quick Start - Search tag in package ai.tegmentum.webassembly4j.runtime.gc
- Section
R
- readBool(int) - Method in class ai.tegmentum.webassembly4j.runtime.marshal.MemoryReader
-
Reads a boolean value from the given offset.
- readBytes(int) - Method in class ai.tegmentum.webassembly4j.runtime.marshal.MemoryReader
-
Reads a byte array from the given offset.
- reader() - Method in class ai.tegmentum.webassembly4j.runtime.marshal.MarshalContext
-
Returns the memory reader.
- readF32(int) - Method in class ai.tegmentum.webassembly4j.runtime.marshal.MemoryReader
-
Reads a 32-bit float from the given offset (little-endian).
- readF64(int) - Method in class ai.tegmentum.webassembly4j.runtime.marshal.MemoryReader
-
Reads a 64-bit float from the given offset (little-endian).
- readI32(int) - Method in class ai.tegmentum.webassembly4j.runtime.marshal.MemoryReader
-
Reads a 32-bit integer from the given offset (little-endian).
- readI64(int) - Method in class ai.tegmentum.webassembly4j.runtime.marshal.MemoryReader
-
Reads a 64-bit integer from the given offset (little-endian).
- readString(int) - Method in class ai.tegmentum.webassembly4j.runtime.marshal.MemoryReader
-
Reads a string from the given offset.
- recordAlignment(TypeLayout...) - Static method in class ai.tegmentum.webassembly4j.runtime.marshal.CanonicalABI
-
Computes the alignment of a record, which is the maximum alignment of its fields.
- Records - Search tag in package ai.tegmentum.webassembly4j.runtime.gc
- Section
- recordSize(TypeLayout...) - Static method in class ai.tegmentum.webassembly4j.runtime.marshal.CanonicalABI
-
Computes the total size of a record with the given field layouts, including padding for alignment.
- requiresMarshalling(Class<?>[], Class<?>) - Static method in class ai.tegmentum.webassembly4j.runtime.proxy.TypeConverter
-
Returns true if any of the parameter types or the return type requires marshalling.
- reset(int) - Method in class ai.tegmentum.webassembly4j.runtime.marshal.BumpAllocator
-
Resets the allocator to the given offset, freeing all allocations past that point.
S
- S16 - Enum constant in enum ai.tegmentum.webassembly4j.runtime.marshal.TypeLayout
- S32 - Enum constant in enum ai.tegmentum.webassembly4j.runtime.marshal.TypeLayout
- S64 - Enum constant in enum ai.tegmentum.webassembly4j.runtime.marshal.TypeLayout
- S8 - Enum constant in enum ai.tegmentum.webassembly4j.runtime.marshal.TypeLayout
- scan(Object...) - Static method in class ai.tegmentum.webassembly4j.runtime.proxy.HostFunctionScanner
- size() - Method in enum ai.tegmentum.webassembly4j.runtime.marshal.TypeLayout
-
Returns the size of this type in bytes.
- STRING - Enum constant in enum ai.tegmentum.webassembly4j.runtime.marshal.TypeLayout
-
A string is stored as (i32 pointer, i32 byte_length).
- StringCodec - Class in ai.tegmentum.webassembly4j.runtime.marshal
-
Encodes and decodes strings to/from WebAssembly linear memory using UTF-8.
- supports(Class<?>) - Method in interface ai.tegmentum.webassembly4j.runtime.spi.WasmBindingProvider
- supportsComponentBinding() - Method in interface ai.tegmentum.webassembly4j.runtime.spi.WasmBindingProvider
-
Returns whether this provider supports component model binding in addition to core module binding.
T
- toStructType(Class<?>) - Method in class ai.tegmentum.webassembly4j.runtime.gc.GcTypeMapper
-
Returns the GC struct type for the given Java class.
- TypeConverter - Class in ai.tegmentum.webassembly4j.runtime.proxy
- TypeLayout - Enum in ai.tegmentum.webassembly4j.runtime.marshal
-
Canonical ABI type layouts with size and alignment in bytes.
- typeMapper() - Method in class ai.tegmentum.webassembly4j.runtime.gc.GcMarshaller
-
Returns the type mapper used by this marshaller.
- Type Mapping - Search tag in package ai.tegmentum.webassembly4j.runtime.gc
- Section
U
- U16 - Enum constant in enum ai.tegmentum.webassembly4j.runtime.marshal.TypeLayout
- U32 - Enum constant in enum ai.tegmentum.webassembly4j.runtime.marshal.TypeLayout
- U64 - Enum constant in enum ai.tegmentum.webassembly4j.runtime.marshal.TypeLayout
- U8 - Enum constant in enum ai.tegmentum.webassembly4j.runtime.marshal.TypeLayout
- unmarshal(GcStructInstance, Class<T>) - Method in class ai.tegmentum.webassembly4j.runtime.gc.GcMarshaller
-
Unmarshals a GC struct instance to a Java object.
- unwrap() - Method in class ai.tegmentum.webassembly4j.runtime.WasmInstance
V
- value() - Element in annotation type ai.tegmentum.webassembly4j.runtime.annotation.WasmExport
- value() - Element in annotation type ai.tegmentum.webassembly4j.runtime.gc.GcMapped
-
Optional WasmGC struct type name.
- valueOf(String) - Static method in enum ai.tegmentum.webassembly4j.runtime.marshal.TypeLayout
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum ai.tegmentum.webassembly4j.runtime.marshal.TypeLayout
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- WasmBinaryInfo - Class in ai.tegmentum.webassembly4j.runtime.component
-
Detects whether a WASM binary is a core module or a component.
- WasmBindingProvider - Interface in ai.tegmentum.webassembly4j.runtime.spi
- WasmExport - Annotation Type in ai.tegmentum.webassembly4j.runtime.annotation
- WasmImport - Annotation Type in ai.tegmentum.webassembly4j.runtime.annotation
- WasmInstance - Class in ai.tegmentum.webassembly4j.runtime
- WasmModule - Class in ai.tegmentum.webassembly4j.runtime
- WasmRuntime - Class in ai.tegmentum.webassembly4j.runtime
- WasmRuntimeBuilder - Class in ai.tegmentum.webassembly4j.runtime
- When to Use GC vs Linear Memory - Search tag in package ai.tegmentum.webassembly4j.runtime.gc
- Section
- writeBool(int, boolean) - Method in class ai.tegmentum.webassembly4j.runtime.marshal.MemoryWriter
-
Writes a boolean value at the given offset.
- writeBytes(int, byte[]) - Method in class ai.tegmentum.webassembly4j.runtime.marshal.MemoryWriter
-
Writes a byte array at the given offset as a (pointer, byte_length) pair.
- writeF32(int, float) - Method in class ai.tegmentum.webassembly4j.runtime.marshal.MemoryWriter
-
Writes a 32-bit float at the given offset (little-endian).
- writeF64(int, double) - Method in class ai.tegmentum.webassembly4j.runtime.marshal.MemoryWriter
-
Writes a 64-bit float at the given offset (little-endian).
- writeI32(int, int) - Method in class ai.tegmentum.webassembly4j.runtime.marshal.MemoryWriter
-
Writes a 32-bit integer at the given offset (little-endian).
- writeI64(int, long) - Method in class ai.tegmentum.webassembly4j.runtime.marshal.MemoryWriter
-
Writes a 64-bit integer at the given offset (little-endian).
- writer() - Method in class ai.tegmentum.webassembly4j.runtime.marshal.MarshalContext
-
Returns the memory writer.
- writeString(int, String) - Method in class ai.tegmentum.webassembly4j.runtime.marshal.MemoryWriter
-
Writes a string at the given offset as a (pointer, byte_length) pair.
All Classes and Interfaces|All Packages