bytebox - v1.0.0
    Preparing search index...

    Interface LoadOptions

    interface LoadOptions {
        bytes: ArrayBuffer | Uint8Array<ArrayBufferLike>;
        imports?: Record<string, unknown>;
        modules?: Record<string, unknown>;
        print?: (line: string) => void;
        printErr?: (line: string) => void;
        runtime: TeaVMRuntime;
        time?: TimePolicy;
    }
    Index
    bytes: ArrayBuffer | Uint8Array<ArrayBufferLike>

    The compiled module's bytes, imported as a wrangler Data module.

    imports?: Record<string, unknown>

    Extra or replacement wasm imports, merged after everything else is installed.

    modules?: Record<string, unknown>

    JavaScript modules the compiled program imports, keyed by specifier.

    Each value is the module namespace from a static import. Use requiredModules to find out which specifiers a binary asks for.

    import * as nanoid from 'nanoid';

    load({ runtime, bytes, modules: { nanoid } });
    print?: (line: string) => void

    Called once per line written to Java's System.out.

    printErr?: (line: string) => void

    Called once per line written to Java's System.err.

    runtime: TeaVMRuntime

    TeaVM's generated runtime module, imported by the caller.

    time?: TimePolicy

    How a fiber scheduled for the future is treated. Defaults to virtual.