Creates a RaptorQ session with the specified parameters.
Size of each symbol in bytes (default: 65535)
Redundancy factor for encoding (default: 10)
Maximum memory in MB (default: 1024)
Concurrency limit (default: 4)
A new RaptorQSession instance
Creates a single-block RaptorQ layout from file bytes.
This generates metadata for a file by:
The file content as a Uint8Array
A promise that resolves to the raw layout file bytes (JSON format)
Checks if the WASM module is currently initialized.
True if the module is initialized, false otherwise
StaticgetGets the singleton instance of the RaptorQProxy.
The RaptorQProxy singleton instance
Staticreset
Proxy to the rq-library-wasm package for RaptorQ operations.
This class handles initialization of the WASM module and provides a clean API for creating RaptorQ layouts using in-memory filesystem operations.
Remarks
The proxy implements the singleton pattern to ensure only one WASM instance is created. Files are stored in browser's in-memory filesystem before processing.
Example