wasm-posix-host
    Preparing search index...

    Interface LoadSharedLibraryOptions

    Options for loading a shared library.

    interface LoadSharedLibraryOptions {
        allocateMemory?: (size: number, align: number) => number;
        globalSymbols: Map<string, Function | Global<keyof ValueTypeMap>>;
        got: Map<string, Global<keyof ValueTypeMap>>;
        heapPointer?: { value: number };
        loadedLibraries: Map<string, LoadedSharedLibrary>;
        memory: Memory;
        resolveLibrary?: (
            name: string,
        ) => Promise<Uint8Array<ArrayBufferLike> | null>;
        resolveLibrarySync?: (name: string) => Uint8Array<ArrayBufferLike> | null;
        stackPointer: Global;
        table: Table;
    }
    Index

    Properties

    allocateMemory?: (size: number, align: number) => number

    Allocate side-module linear-memory data in the process address space

    globalSymbols: Map<string, Function | Global<keyof ValueTypeMap>>

    Global symbol table: name → function or WebAssembly.Global

    got: Map<string, Global<keyof ValueTypeMap>>

    GOT entries: symbol name → mutable i32 WebAssembly.Global

    heapPointer?: { value: number }

    Current heap pointer — updated after allocation when no allocator is supplied

    loadedLibraries: Map<string, LoadedSharedLibrary>

    Already-loaded libraries for dedup and dependency resolution

    memory: Memory

    The shared Wasm.Memory used by the process

    resolveLibrary?: (name: string) => Promise<Uint8Array<ArrayBufferLike> | null>

    Callback to locate and read a library file by name (async version)

    resolveLibrarySync?: (name: string) => Uint8Array<ArrayBufferLike> | null

    Callback to locate and read a library file by name (sync version)

    stackPointer: Global

    Stack pointer global (shared across all modules)

    table: Table

    The process's indirect function table