@scalable-vector-audio/sva-wasm 0.9.6 → 0.9.7
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/package.json +1 -1
- package/sva_wasm.d.ts +115 -19
- package/sva_wasm.js +55 -40
- package/sva_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/sva_wasm.d.ts
CHANGED
|
@@ -1,16 +1,33 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
|
|
4
|
-
/** What one call did so far, or every call since
|
|
4
|
+
/** What one call did so far, or every call of one composition since its subscriber took it. */
|
|
5
5
|
export interface EngineWork {
|
|
6
6
|
/** Samples of the target delivered. */
|
|
7
7
|
samples: number;
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* The work scale, in samples of values: `cached_samples + computed_samples` is the work
|
|
10
|
+
* done, and `cached_samples / (cached_samples + computed_samples)` the share of it that was
|
|
11
|
+
* cached. A value is the target or anything it reads; a sample of one counts once per call.
|
|
12
|
+
*
|
|
13
|
+
* `cached_samples`: samples answered by what memory or the store held before the call
|
|
14
|
+
* began, counted as the call reads them. Nothing the call itself computed counts, however
|
|
15
|
+
* often it reads it back. A cached value counts its own samples only: the work that once
|
|
16
|
+
* computed it and everything beneath it is not known, so a target read back whole counts
|
|
17
|
+
* the target's samples and nothing else. They are counted only while a subscriber
|
|
18
|
+
* listens: a call under way when its subscriber arrives counts them from then on.
|
|
19
|
+
*/
|
|
20
|
+
cached_samples: number;
|
|
21
|
+
/** The part of `cached_samples` whose value the store answered for this call. */
|
|
22
|
+
cached_from_store_samples: number;
|
|
23
|
+
/** Samples computed, summed over every value: 0 when all was read back. */
|
|
9
24
|
computed_samples: number;
|
|
10
25
|
/**
|
|
11
|
-
* Lookups by what each came to, the counts `Rendering.stats()` ends at
|
|
12
|
-
*
|
|
13
|
-
*
|
|
26
|
+
* Lookups by what each came to, the counts `Rendering.stats()` ends at: unweighted, and
|
|
27
|
+
* `reused` counts a call's reads of what it computed itself, so no share of work is read
|
|
28
|
+
* off them. Cached: `hit` (`from_memory` + `from_store`). Uncached: `miss`, and `prefix`
|
|
29
|
+
* (found only in part). `new`: misses kept for the next call. A count may fall as a lookup
|
|
30
|
+
* settles.
|
|
14
31
|
*/
|
|
15
32
|
lookups: {
|
|
16
33
|
hit: number; from_memory: number; from_store: number;
|
|
@@ -42,31 +59,104 @@ export interface EngineCall extends EngineWork {
|
|
|
42
59
|
* for a stream whose end is open.
|
|
43
60
|
*/
|
|
44
61
|
total_samples: number | null;
|
|
62
|
+
/**
|
|
63
|
+
* What `cached_samples + computed_samples` counts up to: the call's whole work, so
|
|
64
|
+
* `(cached_samples + computed_samples) / planned_samples` is its progress, moving while a
|
|
65
|
+
* long pull delivers nothing. It is what the engine now plans, never an estimate: every
|
|
66
|
+
* sample its values still have to read back or compute over the rest of the range. The
|
|
67
|
+
* plan is corrected, by about a hundredth at most where measured, when the first block is
|
|
68
|
+
* pulled: only then is it known which values memory answers on their first read, and what
|
|
69
|
+
* the run-up before the first block left held. It is corrected again where memory lets go
|
|
70
|
+
* of a value meanwhile, and where `until` ends the call early. The work done never falls,
|
|
71
|
+
* and a call that ends `done` ends with the two equal. null until the call's values are built
|
|
72
|
+
* (before `delivering`), for a persist, and for a stream whose end is open: there the
|
|
73
|
+
* engine knows no total, and the counts stand alone.
|
|
74
|
+
*/
|
|
75
|
+
planned_samples: number | null;
|
|
76
|
+
/**
|
|
77
|
+
* A render's typing, `typed` of `nodes`: null for a stream, an edit and a persist, which
|
|
78
|
+
* report the phase alone, and null in a render until the instances the target reaches are
|
|
79
|
+
* scanned: the engine finds them as it scans, so that stretch has no total and reports no
|
|
80
|
+
* count. `instances`: how many it reaches. `nodes`: how many this call types, 0 where the
|
|
81
|
+
* composition's last call typed them all. `typed`: how many are typed so far, ending at
|
|
82
|
+
* `nodes`. What follows in `typing` (naming each node by what it computes, and bounding
|
|
83
|
+
* the target) reports no count either.
|
|
84
|
+
*/
|
|
85
|
+
typing: { instances: number; nodes: number; typed: number } | null;
|
|
45
86
|
}
|
|
46
87
|
|
|
47
88
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
89
|
+
* The engine starting, heard by the module's `subscribe` alone. `startThreads` reports
|
|
90
|
+
* `starting_threads`, then `threads_started` or `threads_failed`. `Composition.open` reports
|
|
91
|
+
* `opening_store` (waiting for the store's lock), `reading_index`, `index_read`, then
|
|
92
|
+
* `opened`; `store_failed` then `opened` where the store would not open and memory runs
|
|
93
|
+
* alone; `opened` alone where it was handed no directory. `new Composition()` reports none.
|
|
94
|
+
* Fetching and compiling the wasm module happen before any engine code runs: they are the
|
|
95
|
+
* page's to report.
|
|
96
|
+
*/
|
|
97
|
+
export interface EngineBoot {
|
|
98
|
+
phase: "starting_threads" | "threads_started" | "threads_failed"
|
|
99
|
+
| "opening_store" | "reading_index" | "index_read" | "store_failed" | "opened";
|
|
100
|
+
/**
|
|
101
|
+
* The threads asked for in `starting_threads`, else the pool's: null where none started.
|
|
102
|
+
* The pool starts as one step: no count of threads up so far exists.
|
|
103
|
+
*/
|
|
104
|
+
threads: number | null;
|
|
105
|
+
/** null where no store is opened: in `store_failed`, how far its opening got. */
|
|
106
|
+
store: {
|
|
107
|
+
/** The store's budget. */
|
|
108
|
+
max_bytes: number;
|
|
109
|
+
/** The index file's size; null until `index_read`. */
|
|
110
|
+
index_bytes: number | null;
|
|
111
|
+
/** The entries the index names, and their bytes; null until `index_read`. */
|
|
112
|
+
entries: number | null;
|
|
113
|
+
bytes: number | null;
|
|
114
|
+
} | null;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* One report of the module's `subscribe` or of `Composition.subscribe`. A call reports when
|
|
119
|
+
* it begins, at each new phase, while `typing` once a hundredth more of its nodes are typed,
|
|
120
|
+
* per fetch from the store while `fetching`, while `delivering` at block boundaries no more
|
|
121
|
+
* than ten times per second of samples delivered and once a hundredth more of its planned work
|
|
122
|
+
* is done, and when it ends. The callback runs inside the call, on the thread that made it,
|
|
123
|
+
* never on a render thread: a worker forwards each report with `postMessage`. A page on the
|
|
124
|
+
* engine's own thread hears every report as it is made, but paints nothing until the call
|
|
125
|
+
* yields to the event loop, which a render does between blocks only when given a `signal` or
|
|
126
|
+
* reading a store. What the callback throws is logged, and stops nothing. The hook only
|
|
127
|
+
* observes: samples and stored bytes are the same subscribed or not.
|
|
55
128
|
*/
|
|
56
129
|
export interface EngineStats {
|
|
57
130
|
/**
|
|
58
131
|
* "working" while a render, a stream's open, an edit or a persist is in flight. A stream's
|
|
59
132
|
* reads never count: what they report says "idle" unless such a call is in flight beside it.
|
|
133
|
+
* "booting" in a boot report whose step is still under way.
|
|
60
134
|
*/
|
|
61
|
-
state: "working" | "idle";
|
|
62
|
-
/** How many such calls are in flight. */
|
|
135
|
+
state: "working" | "idle" | "booting";
|
|
136
|
+
/** How many such calls are in flight in the composition reporting; 0 in a boot report. */
|
|
63
137
|
working: number;
|
|
64
|
-
/** The
|
|
138
|
+
/** The boot step this report is about; null in every report of a composition. */
|
|
139
|
+
boot: EngineBoot | null;
|
|
140
|
+
/**
|
|
141
|
+
* The call this report is about; null in a boot report and in the one report a
|
|
142
|
+
* composition answers its new subscriber with.
|
|
143
|
+
*/
|
|
65
144
|
call: EngineCall | null;
|
|
66
|
-
/** Every call's work since
|
|
145
|
+
/** Every call's work in the composition reporting since its subscriber took it. */
|
|
67
146
|
totals: EngineWork;
|
|
68
147
|
}
|
|
69
148
|
|
|
149
|
+
/**
|
|
150
|
+
* One subscription for the module: `callback`, in place of the last one, hears the boot
|
|
151
|
+
* (`startThreads`, each `Composition.open`) and every composition, open now or made later,
|
|
152
|
+
* that has no subscriber of its own, each as `Composition.subscribe` reports it. Subscribe
|
|
153
|
+
* before `startThreads` and `open` to hear them. At teardown, `unsubscribe`, or terminate the
|
|
154
|
+
* worker: either leaves nothing behind.
|
|
155
|
+
*/
|
|
156
|
+
export function subscribe(callback: (stats: EngineStats) => void): void;
|
|
157
|
+
/** The module's subscriber hears no more; a composition's own is left as it is. */
|
|
158
|
+
export function unsubscribe(): void;
|
|
159
|
+
|
|
70
160
|
|
|
71
161
|
|
|
72
162
|
export class Composition {
|
|
@@ -102,10 +192,13 @@ export class Composition {
|
|
|
102
192
|
*/
|
|
103
193
|
stream(target: string, block: number, options: any): Promise<Stream>;
|
|
104
194
|
/**
|
|
105
|
-
* `callback`, in place of the last one, hears an `EngineStats` at
|
|
106
|
-
*
|
|
195
|
+
* `callback`, in place of the last one and of the module's, hears an `EngineStats` at
|
|
196
|
+
* once, then from every call of this composition.
|
|
107
197
|
*/
|
|
108
198
|
subscribe(callback: (stats: EngineStats) => void): void;
|
|
199
|
+
/**
|
|
200
|
+
* The module's subscriber, where there is one, hears it from here on.
|
|
201
|
+
*/
|
|
109
202
|
unsubscribe(): void;
|
|
110
203
|
readonly cache_bytes: number;
|
|
111
204
|
readonly cache_entries: number;
|
|
@@ -201,7 +294,8 @@ export class Stream {
|
|
|
201
294
|
export function initThreadPool(num_threads: number): Promise<any>;
|
|
202
295
|
|
|
203
296
|
/**
|
|
204
|
-
* Once, from a worker of a cross-origin isolated page.
|
|
297
|
+
* Once, from a worker of a cross-origin isolated page. The module's subscriber hears it start
|
|
298
|
+
* as an `EngineBoot`.
|
|
205
299
|
*/
|
|
206
300
|
export function startThreads(threads: number): Promise<void>;
|
|
207
301
|
|
|
@@ -265,6 +359,8 @@ export interface InitOutput {
|
|
|
265
359
|
readonly stream_sample_rate: (a: number) => number;
|
|
266
360
|
readonly stream_stats: (a: number) => [number, number, number];
|
|
267
361
|
readonly stream_work: (a: number) => [number, number, number];
|
|
362
|
+
readonly subscribe: (a: any) => void;
|
|
363
|
+
readonly unsubscribe: () => void;
|
|
268
364
|
readonly wbg_rayon_poolbuilder_build: (a: number) => void;
|
|
269
365
|
readonly wbg_rayon_poolbuilder_mainJS: (a: number) => any;
|
|
270
366
|
readonly wbg_rayon_poolbuilder_numThreads: (a: number) => number;
|
package/sva_wasm.js
CHANGED
|
@@ -158,13 +158,16 @@ export class Composition {
|
|
|
158
158
|
return ret;
|
|
159
159
|
}
|
|
160
160
|
/**
|
|
161
|
-
* `callback`, in place of the last one, hears an `EngineStats` at
|
|
162
|
-
*
|
|
161
|
+
* `callback`, in place of the last one and of the module's, hears an `EngineStats` at
|
|
162
|
+
* once, then from every call of this composition.
|
|
163
163
|
* @param {(stats: EngineStats) => void} callback
|
|
164
164
|
*/
|
|
165
165
|
subscribe(callback) {
|
|
166
166
|
wasm.composition_subscribe(this.__wbg_ptr, callback);
|
|
167
167
|
}
|
|
168
|
+
/**
|
|
169
|
+
* The module's subscriber, where there is one, hears it from here on.
|
|
170
|
+
*/
|
|
168
171
|
unsubscribe() {
|
|
169
172
|
wasm.composition_unsubscribe(this.__wbg_ptr);
|
|
170
173
|
}
|
|
@@ -450,7 +453,8 @@ export function initThreadPool(num_threads) {
|
|
|
450
453
|
}
|
|
451
454
|
|
|
452
455
|
/**
|
|
453
|
-
* Once, from a worker of a cross-origin isolated page.
|
|
456
|
+
* Once, from a worker of a cross-origin isolated page. The module's subscriber hears it start
|
|
457
|
+
* as an `EngineBoot`.
|
|
454
458
|
* @param {number} threads
|
|
455
459
|
* @returns {Promise<void>}
|
|
456
460
|
*/
|
|
@@ -459,6 +463,17 @@ export function startThreads(threads) {
|
|
|
459
463
|
return ret;
|
|
460
464
|
}
|
|
461
465
|
|
|
466
|
+
/**
|
|
467
|
+
* @param {Function} callback
|
|
468
|
+
*/
|
|
469
|
+
export function subscribe(callback) {
|
|
470
|
+
wasm.subscribe(callback);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
export function unsubscribe() {
|
|
474
|
+
wasm.unsubscribe();
|
|
475
|
+
}
|
|
476
|
+
|
|
462
477
|
export class wbg_rayon_PoolBuilder {
|
|
463
478
|
static __wrap(ptr) {
|
|
464
479
|
const obj = Object.create(wbg_rayon_PoolBuilder.prototype);
|
|
@@ -571,7 +586,7 @@ function __wbg_get_imports(memory) {
|
|
|
571
586
|
__wbg__wbg_cb_unref_997e73d32238e655: function(arg0) {
|
|
572
587
|
arg0._wbg_cb_unref();
|
|
573
588
|
},
|
|
574
|
-
|
|
589
|
+
__wbg_arrayBuffer_9ad87094932f6cb9: function(arg0) {
|
|
575
590
|
const ret = arg0.arrayBuffer();
|
|
576
591
|
return ret;
|
|
577
592
|
},
|
|
@@ -591,18 +606,18 @@ function __wbg_get_imports(memory) {
|
|
|
591
606
|
const ret = arg0.call(arg1, arg2);
|
|
592
607
|
return ret;
|
|
593
608
|
}, arguments); },
|
|
594
|
-
|
|
609
|
+
__wbg_close_7bc57de15a5a262c: function(arg0) {
|
|
610
|
+
arg0.close();
|
|
611
|
+
},
|
|
612
|
+
__wbg_close_90c4f8b82ef8f25d: function(arg0) {
|
|
595
613
|
const ret = arg0.close();
|
|
596
614
|
return ret;
|
|
597
615
|
},
|
|
598
|
-
__wbg_close_ed5e9b27b36b4a58: function(arg0) {
|
|
599
|
-
arg0.close();
|
|
600
|
-
},
|
|
601
616
|
__wbg_composition_new: function(arg0) {
|
|
602
617
|
const ret = Composition.__wrap(arg0);
|
|
603
618
|
return ret;
|
|
604
619
|
},
|
|
605
|
-
|
|
620
|
+
__wbg_createWritable_592bfb428e0074c4: function(arg0) {
|
|
606
621
|
const ret = arg0.createWritable();
|
|
607
622
|
return ret;
|
|
608
623
|
},
|
|
@@ -618,15 +633,15 @@ function __wbg_get_imports(memory) {
|
|
|
618
633
|
const ret = Array.from(arg0);
|
|
619
634
|
return ret;
|
|
620
635
|
},
|
|
621
|
-
|
|
636
|
+
__wbg_getDirectoryHandle_92ea92a2cf425351: function(arg0, arg1, arg2, arg3) {
|
|
622
637
|
const ret = arg0.getDirectoryHandle(getStringFromWasm0(arg1, arg2), arg3);
|
|
623
638
|
return ret;
|
|
624
639
|
},
|
|
625
|
-
|
|
640
|
+
__wbg_getFileHandle_300e5d6b9533bb83: function(arg0, arg1, arg2, arg3) {
|
|
626
641
|
const ret = arg0.getFileHandle(getStringFromWasm0(arg1, arg2), arg3);
|
|
627
642
|
return ret;
|
|
628
643
|
},
|
|
629
|
-
|
|
644
|
+
__wbg_getFile_2ced7a0f6c787d32: function(arg0) {
|
|
630
645
|
const ret = arg0.getFile();
|
|
631
646
|
return ret;
|
|
632
647
|
},
|
|
@@ -670,7 +685,7 @@ function __wbg_get_imports(memory) {
|
|
|
670
685
|
const ret = Array.isArray(arg0);
|
|
671
686
|
return ret;
|
|
672
687
|
},
|
|
673
|
-
|
|
688
|
+
__wbg_keys_aa4884d7c20a0267: function(arg0) {
|
|
674
689
|
const ret = arg0.keys();
|
|
675
690
|
return ret;
|
|
676
691
|
},
|
|
@@ -686,11 +701,11 @@ function __wbg_get_imports(memory) {
|
|
|
686
701
|
const ret = arg0.length;
|
|
687
702
|
return ret;
|
|
688
703
|
},
|
|
689
|
-
|
|
704
|
+
__wbg_move_e21e6efa3d4a0943: function(arg0, arg1, arg2, arg3) {
|
|
690
705
|
const ret = arg0.move(arg1, getStringFromWasm0(arg2, arg3));
|
|
691
706
|
return ret;
|
|
692
707
|
},
|
|
693
|
-
|
|
708
|
+
__wbg_name_b87f92c7dca3bee8: function(arg0, arg1) {
|
|
694
709
|
const ret = arg1.name;
|
|
695
710
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
696
711
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -701,7 +716,7 @@ function __wbg_get_imports(memory) {
|
|
|
701
716
|
const ret = new Int32Array(arg0);
|
|
702
717
|
return ret;
|
|
703
718
|
},
|
|
704
|
-
|
|
719
|
+
__wbg_new_09edd496ab7b3efa: function() {
|
|
705
720
|
const ret = new MessageChannel();
|
|
706
721
|
return ret;
|
|
707
722
|
},
|
|
@@ -709,7 +724,7 @@ function __wbg_get_imports(memory) {
|
|
|
709
724
|
const ret = new Uint8Array(arg0);
|
|
710
725
|
return ret;
|
|
711
726
|
},
|
|
712
|
-
|
|
727
|
+
__wbg_new_2f005795cc40639e: function(arg0, arg1) {
|
|
713
728
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
714
729
|
return ret;
|
|
715
730
|
},
|
|
@@ -761,7 +776,7 @@ function __wbg_get_imports(memory) {
|
|
|
761
776
|
const ret = new Worker(getStringFromWasm0(arg0, arg1));
|
|
762
777
|
return ret;
|
|
763
778
|
},
|
|
764
|
-
|
|
779
|
+
__wbg_next_550411310a5b8f19: function(arg0) {
|
|
765
780
|
const ret = arg0.next();
|
|
766
781
|
return ret;
|
|
767
782
|
},
|
|
@@ -769,28 +784,28 @@ function __wbg_get_imports(memory) {
|
|
|
769
784
|
const ret = Array.of(arg0, arg1, arg2);
|
|
770
785
|
return ret;
|
|
771
786
|
},
|
|
772
|
-
|
|
787
|
+
__wbg_parse_723a87c4ff290c37: function() { return handleError(function (arg0, arg1) {
|
|
773
788
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
774
789
|
return ret;
|
|
775
790
|
}, arguments); },
|
|
776
|
-
|
|
791
|
+
__wbg_port1_5a15b0e347714dc5: function(arg0) {
|
|
777
792
|
const ret = arg0.port1;
|
|
778
793
|
return ret;
|
|
779
794
|
},
|
|
780
|
-
|
|
795
|
+
__wbg_port2_c30e5d3ba1dce0e2: function(arg0) {
|
|
781
796
|
const ret = arg0.port2;
|
|
782
797
|
return ret;
|
|
783
798
|
},
|
|
799
|
+
__wbg_postMessage_29f2f4e22ce8c237: function(arg0, arg1) {
|
|
800
|
+
arg0.postMessage(arg1);
|
|
801
|
+
},
|
|
784
802
|
__wbg_postMessage_8105a302ed002474: function() { return handleError(function (arg0, arg1) {
|
|
785
803
|
arg0.postMessage(arg1);
|
|
786
804
|
}, arguments); },
|
|
787
|
-
__wbg_postMessage_f09ef855b53cb647: function(arg0, arg1) {
|
|
788
|
-
arg0.postMessage(arg1);
|
|
789
|
-
},
|
|
790
805
|
__wbg_prototypesetcall_ae9f5e7459250748: function(arg0, arg1, arg2) {
|
|
791
806
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
792
807
|
},
|
|
793
|
-
|
|
808
|
+
__wbg_query_d570390809dc58be: function(arg0) {
|
|
794
809
|
const ret = arg0.query();
|
|
795
810
|
return ret;
|
|
796
811
|
},
|
|
@@ -805,11 +820,11 @@ function __wbg_get_imports(memory) {
|
|
|
805
820
|
const ret = Math.random();
|
|
806
821
|
return ret;
|
|
807
822
|
},
|
|
808
|
-
|
|
823
|
+
__wbg_removeEntry_5200c020554eef5e: function(arg0, arg1, arg2) {
|
|
809
824
|
const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2));
|
|
810
825
|
return ret;
|
|
811
826
|
},
|
|
812
|
-
|
|
827
|
+
__wbg_removeEntry_b0e58a242da8a1cf: function(arg0, arg1, arg2, arg3) {
|
|
813
828
|
const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2), arg3);
|
|
814
829
|
return ret;
|
|
815
830
|
},
|
|
@@ -817,7 +832,7 @@ function __wbg_get_imports(memory) {
|
|
|
817
832
|
const ret = Rendering.__wrap(arg0);
|
|
818
833
|
return ret;
|
|
819
834
|
},
|
|
820
|
-
|
|
835
|
+
__wbg_request_eb7cf9d79f2b866e: function(arg0, arg1, arg2, arg3) {
|
|
821
836
|
const ret = arg0.request(getStringFromWasm0(arg1, arg2), arg3);
|
|
822
837
|
return ret;
|
|
823
838
|
},
|
|
@@ -832,23 +847,23 @@ function __wbg_get_imports(memory) {
|
|
|
832
847
|
__wbg_set_c41f8dbc07a2190f: function(arg0, arg1, arg2) {
|
|
833
848
|
arg0.set(getArrayF32FromWasm0(arg1, arg2));
|
|
834
849
|
},
|
|
835
|
-
|
|
850
|
+
__wbg_set_name_3d1b37d785401fc2: function(arg0, arg1, arg2) {
|
|
836
851
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
837
852
|
},
|
|
838
853
|
__wbg_set_onmessage_2244c2525c4e0c38: function(arg0, arg1) {
|
|
839
854
|
arg0.onmessage = arg1;
|
|
840
855
|
},
|
|
841
|
-
|
|
856
|
+
__wbg_set_onmessage_de3e9b344c2a60e1: function(arg0, arg1) {
|
|
842
857
|
arg0.onmessage = arg1;
|
|
843
858
|
},
|
|
844
|
-
|
|
859
|
+
__wbg_set_refusal_470e7e8a2aa7449c: function(arg0, arg1) {
|
|
845
860
|
arg0.refusal = arg1;
|
|
846
861
|
},
|
|
847
|
-
|
|
862
|
+
__wbg_size_0908d6786bbb6a59: function(arg0) {
|
|
848
863
|
const ret = arg0.size;
|
|
849
864
|
return ret;
|
|
850
865
|
},
|
|
851
|
-
|
|
866
|
+
__wbg_slice_5668c2b391ded9ae: function(arg0, arg1, arg2) {
|
|
852
867
|
const ret = arg0.slice(arg1, arg2);
|
|
853
868
|
return ret;
|
|
854
869
|
},
|
|
@@ -908,35 +923,35 @@ function __wbg_get_imports(memory) {
|
|
|
908
923
|
const ret = Atomics.waitAsync;
|
|
909
924
|
return ret;
|
|
910
925
|
},
|
|
911
|
-
|
|
926
|
+
__wbg_warn_15deab5150b29620: function(arg0, arg1) {
|
|
912
927
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
913
928
|
},
|
|
914
|
-
|
|
929
|
+
__wbg_write_c4f15f6e0905c5fe: function(arg0, arg1) {
|
|
915
930
|
const ret = arg0.write(arg1);
|
|
916
931
|
return ret;
|
|
917
932
|
},
|
|
918
933
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
919
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
934
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
920
935
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d3a5247b0aa3f0ac___convert__closures_____invoke___wasm_bindgen_d3a5247b0aa3f0ac___JsValue______true_);
|
|
921
936
|
return ret;
|
|
922
937
|
},
|
|
923
938
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
924
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
939
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 729, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
925
940
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d3a5247b0aa3f0ac___convert__closures_____invoke___wasm_bindgen_d3a5247b0aa3f0ac___JsValue__core_ea519e494776717c___result__Result_____wasm_bindgen_d3a5247b0aa3f0ac___JsError___true_);
|
|
926
941
|
return ret;
|
|
927
942
|
},
|
|
928
943
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
929
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
944
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 731, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
930
945
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d3a5247b0aa3f0ac___convert__closures_____invoke___js_sys_2b088e2931f41c5___futures__task__wait_async_polyfill__MessageEvent______true_);
|
|
931
946
|
return ret;
|
|
932
947
|
},
|
|
933
948
|
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
934
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
949
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 4, ret: NamedExternref("Promise<any>"), inner_ret: Some(NamedExternref("Promise<any>")) }, mutable: true }) -> Externref`.
|
|
935
950
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d3a5247b0aa3f0ac___convert__closures_____invoke___js_sys_2b088e2931f41c5___Promise__true_);
|
|
936
951
|
return ret;
|
|
937
952
|
},
|
|
938
953
|
__wbindgen_generic_0000000000000005: function(arg0, arg1) {
|
|
939
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
954
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 6, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
940
955
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d3a5247b0aa3f0ac___convert__closures_____invoke_______true_);
|
|
941
956
|
return ret;
|
|
942
957
|
},
|
package/sva_wasm_bg.wasm
CHANGED
|
Binary file
|