virtual-machine 0.1.0 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.d.ts CHANGED
@@ -16,7 +16,7 @@ declare class WasmVm {
16
16
  [Symbol.dispose](): void;
17
17
  /**
18
18
  * Get a byte from the UART output buffer, if available.
19
- *
19
+ *
20
20
  * In SMP mode, this checks both the shared UART output buffer (for worker output)
21
21
  * and the local UART buffer (for hart 0 output).
22
22
  */
@@ -100,7 +100,7 @@ declare class WasmVm {
100
100
  * Set up an external network backend for packet bridging.
101
101
  * This is used by the Node.js CLI to bridge packets between the native
102
102
  * WebTransport addon and the WASM VM.
103
- *
103
+ *
104
104
  * @param mac_bytes - MAC address as 6 bytes [0x52, 0x54, 0x00, 0x12, 0x34, 0x56]
105
105
  */
106
106
  setup_external_network(mac_bytes: Uint8Array): void;
@@ -191,7 +191,7 @@ declare class WorkerState {
191
191
  [Symbol.dispose](): void;
192
192
  /**
193
193
  * Execute a batch of instructions and return.
194
- *
194
+ *
195
195
  * This is designed to be called repeatedly from JavaScript, allowing
196
196
  * the event loop to yield between batches. This prevents the worker
197
197
  * from blocking indefinitely and allows it to respond to messages.
@@ -251,7 +251,7 @@ declare function worker_check_interrupts(hart_id: number, shared_mem: any): bigi
251
251
 
252
252
  /**
253
253
  * Legacy worker entry point - DEPRECATED.
254
- *
254
+ *
255
255
  * This function runs a blocking infinite loop. Use WorkerState + step_batch instead
256
256
  * for cooperative scheduling that doesn't block the worker's event loop.
257
257
  */
@@ -300,12 +300,12 @@ interface InitOutput {
300
300
  readonly workerstate_new: (a: number, b: any, c: bigint) => number;
301
301
  readonly workerstate_step_batch: (a: number, b: number) => number;
302
302
  readonly workerstate_step_count: (a: number) => bigint;
303
- readonly wasm_bindgen__convert__closures_____invoke__h8a077b496ee6a629: (a: number, b: number) => void;
304
- readonly wasm_bindgen__closure__destroy__h54a2706e25dd10b8: (a: number, b: number) => void;
305
- readonly wasm_bindgen__convert__closures_____invoke__h38b3d5c42439bcf4: (a: number, b: number) => void;
306
- readonly wasm_bindgen__convert__closures_____invoke__he860240c5b649134: (a: number, b: number, c: any) => void;
303
+ readonly wasm_bindgen__convert__closures_____invoke__h02b024c830faf3c0: (a: number, b: number, c: any) => void;
304
+ readonly wasm_bindgen__closure__destroy__h6be55d916a7a567c: (a: number, b: number) => void;
307
305
  readonly wasm_bindgen__convert__closures_____invoke__h39d3e89751b07765: (a: number, b: number, c: any) => void;
308
306
  readonly wasm_bindgen__closure__destroy__hf225e18fc5ab9bc1: (a: number, b: number) => void;
307
+ readonly wasm_bindgen__convert__closures_____invoke__h9493c87185cf2d12: (a: number, b: number) => void;
308
+ readonly wasm_bindgen__convert__closures_____invoke__hec486a7a364d96de: (a: number, b: number) => void;
309
309
  readonly __wbindgen_malloc: (a: number, b: number) => number;
310
310
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
311
311
  readonly __wbindgen_exn_store: (a: number) => void;