wasm-posix-host
    Preparing search index...

    Class DynamicLinker

    Manages dynamic linking state for a single process. Provides the dlopen/dlsym/ dlclose API that maps to C runtime calls.

    Index

    Constructors

    Methods

    • Close a library handle. Returns 0 on success.

      Parameters

      • handle: number

      Returns number

    • Get the last error message, or null if no error.

      Returns string | null

    • Open a shared library. Returns a handle (>0) or 0 on error. When replay is provided, behaves as fork-replay: uses the parent's saved memoryBase and skips __wasm_call_ctors. See DylinkReplayOptions for preconditions.

      Parameters

      • name: string
      • wasmBytes: Uint8Array
      • Optionalreplay: DylinkReplayOptions

      Returns number

    • Look up a symbol by name. Returns the function or address, or null.

      Parameters

      • handle: number
      • symbolName: string

      Returns number | Function | null