SDK JS
    Preparing search index...

    Interface WasmHostInit

    Where to load the RIPT decoder wasm from (the type of RiptDecoderOptions.wasmInit). The overall wasm asset precedence is documented once on @bitruvius/foundation's wasm precedence; the fields below are this codec's per-decoder overrides (precedence step 1).

    interface WasmHostInit {
        wasmBytes?: BufferSource;
        wasmUrl?: string | URL;
    }
    Index

    Properties

    Properties

    wasmBytes?: BufferSource

    Pre-fetched wasm bytes (highest precedence). Use in Node/Bun where the sibling .wasm cannot be auto-fetched.

    wasmUrl?: string | URL

    Explicit URL to fetch ript_wasm_bg.wasm from; takes precedence over the configured base URL and build default.