@scalable-vector-audio/sva-wasm 0.7.9 → 0.7.12
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 +18 -24
- package/sva_wasm.js +55 -84
- package/sva_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/sva_wasm.d.ts
CHANGED
|
@@ -5,15 +5,19 @@ export class Composition {
|
|
|
5
5
|
free(): void;
|
|
6
6
|
[Symbol.dispose](): void;
|
|
7
7
|
clear_cache(): void;
|
|
8
|
+
/**
|
|
9
|
+
* Memory's disk traffic since it opened.
|
|
10
|
+
*/
|
|
11
|
+
counters(): any;
|
|
8
12
|
insert(path: string, text: string): void;
|
|
9
13
|
constructor(name?: string | null);
|
|
10
14
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
15
|
+
* Memory over the store in `dir`, an origin-private file system directory; alone where
|
|
16
|
+
* none opens.
|
|
13
17
|
*/
|
|
14
18
|
static open(name?: string | null, dir?: FileSystemDirectoryHandle | null): Promise<Composition>;
|
|
15
19
|
/**
|
|
16
|
-
* The only
|
|
20
|
+
* The only commit to the directory `open` was handed.
|
|
17
21
|
*/
|
|
18
22
|
persist(): Promise<number>;
|
|
19
23
|
/**
|
|
@@ -23,30 +27,21 @@ export class Composition {
|
|
|
23
27
|
prune(policy: string): void;
|
|
24
28
|
/**
|
|
25
29
|
* `target` as `sva-cli render` takes it, `@piano([0, 2b], f0=C4)`; `representations`
|
|
26
|
-
* what `representations()` answers,
|
|
27
|
-
*
|
|
28
|
-
*
|
|
30
|
+
* what `representations()` answers, each a call as `--representation` writes it.
|
|
31
|
+
* `options`: `rate`, `bits`, `flop_budget`, `until`, `volatile`, and `out: null`, which
|
|
32
|
+
* hands back no samples and reads only `representations`, `samples` otherwise.
|
|
29
33
|
*/
|
|
30
34
|
render(target: string, representations: string[] | null | undefined, options: any): Promise<Rendering>;
|
|
31
35
|
set_cache_policy(policy: string): void;
|
|
32
|
-
set_prune_policy(policy: string): void;
|
|
33
36
|
/**
|
|
34
|
-
* `target` block by block
|
|
35
|
-
* `live`, `channels`.
|
|
37
|
+
* `target` block by block. `options`: `rate`, `bits`, `until`, `live`, `channels`.
|
|
36
38
|
*/
|
|
37
39
|
stream(target: string, block: number, options: any): Promise<Stream>;
|
|
38
|
-
/**
|
|
39
|
-
* `target` staged as `render` would, until `persist`; `{ stats, representations }`,
|
|
40
|
-
* the latter `representations()` for `readings`, null unasked. Options: `rate`, `bits`,
|
|
41
|
-
* `flop_budget`, `readings`.
|
|
42
|
-
*/
|
|
43
|
-
warm(target: string, options: any): Promise<any>;
|
|
44
40
|
readonly cache_bytes: number;
|
|
45
41
|
readonly cache_entries: number;
|
|
46
42
|
readonly cache_evictions: number;
|
|
47
43
|
cache_max_bytes: number;
|
|
48
44
|
readonly cache_policy: string;
|
|
49
|
-
readonly prune_policy: string;
|
|
50
45
|
}
|
|
51
46
|
|
|
52
47
|
export class Rendering {
|
|
@@ -60,7 +55,7 @@ export class Rendering {
|
|
|
60
55
|
representations(): any;
|
|
61
56
|
samples(channel: number): Float32Array;
|
|
62
57
|
/**
|
|
63
|
-
* Every lookup this render made of
|
|
58
|
+
* Every lookup this render made of memory, and what each came to.
|
|
64
59
|
*/
|
|
65
60
|
stats(): any;
|
|
66
61
|
work(): any;
|
|
@@ -75,7 +70,7 @@ export class Rendering {
|
|
|
75
70
|
* A target block by block, reading `@notes` as the sum of its terms, as `@hall(t, x=@notes)`.
|
|
76
71
|
* A key-up replaces a term with one whose release is a number. A term leaves with its handle
|
|
77
72
|
* once the stream passes its support. An edit lands at the first block boundary
|
|
78
|
-
* once
|
|
73
|
+
* once memory answered it; `read` and getters answer meanwhile.
|
|
79
74
|
*/
|
|
80
75
|
export class Stream {
|
|
81
76
|
private constructor();
|
|
@@ -87,7 +82,8 @@ export class Stream {
|
|
|
87
82
|
*/
|
|
88
83
|
add(term: string, options?: any | null): Promise<number>;
|
|
89
84
|
/**
|
|
90
|
-
* `late`: edits landed
|
|
85
|
+
* `late`: edits landed late; `demands`: reads working out the note sum's asks; `built`:
|
|
86
|
+
* what the latest change did anew; `tier`: memory's disk traffic since it opened.
|
|
91
87
|
*/
|
|
92
88
|
counts(): any;
|
|
93
89
|
/**
|
|
@@ -96,7 +92,7 @@ export class Stream {
|
|
|
96
92
|
*/
|
|
97
93
|
edit(expr: string): Promise<void>;
|
|
98
94
|
/**
|
|
99
|
-
* Reads
|
|
95
|
+
* Reads what the next second plays, a few disk reads a call at most.
|
|
100
96
|
*/
|
|
101
97
|
fetch(): Promise<void>;
|
|
102
98
|
landed(handle: number): number | undefined;
|
|
@@ -150,18 +146,16 @@ export interface InitOutput {
|
|
|
150
146
|
readonly composition_cache_max_bytes: (a: number) => number;
|
|
151
147
|
readonly composition_cache_policy: (a: number) => [number, number];
|
|
152
148
|
readonly composition_clear_cache: (a: number) => void;
|
|
149
|
+
readonly composition_counters: (a: number) => [number, number, number];
|
|
153
150
|
readonly composition_insert: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
154
151
|
readonly composition_new: (a: number, b: number) => number;
|
|
155
152
|
readonly composition_open: (a: number, b: number, c: number) => any;
|
|
156
153
|
readonly composition_persist: (a: number) => any;
|
|
157
154
|
readonly composition_prune: (a: number, b: number, c: number) => [number, number];
|
|
158
|
-
readonly composition_prune_policy: (a: number) => [number, number];
|
|
159
155
|
readonly composition_render: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
|
|
160
156
|
readonly composition_set_cache_max_bytes: (a: number, b: number) => void;
|
|
161
157
|
readonly composition_set_cache_policy: (a: number, b: number, c: number) => [number, number];
|
|
162
|
-
readonly composition_set_prune_policy: (a: number, b: number, c: number) => [number, number];
|
|
163
158
|
readonly composition_stream: (a: number, b: number, c: number, d: number, e: any) => any;
|
|
164
|
-
readonly composition_warm: (a: number, b: number, c: number, d: any) => any;
|
|
165
159
|
readonly outline: (a: number, b: number) => [number, number, number];
|
|
166
160
|
readonly rendering_channels: (a: number) => number;
|
|
167
161
|
readonly rendering_duration_secs: (a: number) => number;
|
|
@@ -190,7 +184,7 @@ export interface InitOutput {
|
|
|
190
184
|
readonly stream_work: (a: number) => [number, number, number];
|
|
191
185
|
readonly wasm_bindgen__convert__closures_____invoke__h76bd71bceeca2b95: (a: number, b: number, c: any, d: any) => void;
|
|
192
186
|
readonly wasm_bindgen__convert__closures_____invoke__hd55bb211d6a08150: (a: number, b: number, c: any) => [number, number];
|
|
193
|
-
readonly
|
|
187
|
+
readonly wasm_bindgen__convert__closures_____invoke__h5b6034d5d61911ef: (a: number, b: number) => any;
|
|
194
188
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
195
189
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
196
190
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/sva_wasm.js
CHANGED
|
@@ -63,6 +63,17 @@ export class Composition {
|
|
|
63
63
|
clear_cache() {
|
|
64
64
|
wasm.composition_clear_cache(this.__wbg_ptr);
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Memory's disk traffic since it opened.
|
|
68
|
+
* @returns {any}
|
|
69
|
+
*/
|
|
70
|
+
counters() {
|
|
71
|
+
const ret = wasm.composition_counters(this.__wbg_ptr);
|
|
72
|
+
if (ret[2]) {
|
|
73
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
74
|
+
}
|
|
75
|
+
return takeFromExternrefTable0(ret[0]);
|
|
76
|
+
}
|
|
66
77
|
/**
|
|
67
78
|
* @param {string} path
|
|
68
79
|
* @param {string} text
|
|
@@ -86,8 +97,8 @@ export class Composition {
|
|
|
86
97
|
return this;
|
|
87
98
|
}
|
|
88
99
|
/**
|
|
89
|
-
*
|
|
90
|
-
*
|
|
100
|
+
* Memory over the store in `dir`, an origin-private file system directory; alone where
|
|
101
|
+
* none opens.
|
|
91
102
|
* @param {string | null} [name]
|
|
92
103
|
* @param {FileSystemDirectoryHandle | null} [dir]
|
|
93
104
|
* @returns {Promise<Composition>}
|
|
@@ -99,7 +110,7 @@ export class Composition {
|
|
|
99
110
|
return ret;
|
|
100
111
|
}
|
|
101
112
|
/**
|
|
102
|
-
* The only
|
|
113
|
+
* The only commit to the directory `open` was handed.
|
|
103
114
|
* @returns {Promise<number>}
|
|
104
115
|
*/
|
|
105
116
|
persist() {
|
|
@@ -119,26 +130,11 @@ export class Composition {
|
|
|
119
130
|
throw takeFromExternrefTable0(ret[0]);
|
|
120
131
|
}
|
|
121
132
|
}
|
|
122
|
-
/**
|
|
123
|
-
* @returns {string}
|
|
124
|
-
*/
|
|
125
|
-
get prune_policy() {
|
|
126
|
-
let deferred1_0;
|
|
127
|
-
let deferred1_1;
|
|
128
|
-
try {
|
|
129
|
-
const ret = wasm.composition_prune_policy(this.__wbg_ptr);
|
|
130
|
-
deferred1_0 = ret[0];
|
|
131
|
-
deferred1_1 = ret[1];
|
|
132
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
133
|
-
} finally {
|
|
134
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
133
|
/**
|
|
138
134
|
* `target` as `sva-cli render` takes it, `@piano([0, 2b], f0=C4)`; `representations`
|
|
139
|
-
* what `representations()` answers,
|
|
140
|
-
*
|
|
141
|
-
*
|
|
135
|
+
* what `representations()` answers, each a call as `--representation` writes it.
|
|
136
|
+
* `options`: `rate`, `bits`, `flop_budget`, `until`, `volatile`, and `out: null`, which
|
|
137
|
+
* hands back no samples and reads only `representations`, `samples` otherwise.
|
|
142
138
|
* @param {string} target
|
|
143
139
|
* @param {string[] | null | undefined} representations
|
|
144
140
|
* @param {any} options
|
|
@@ -170,19 +166,7 @@ export class Composition {
|
|
|
170
166
|
}
|
|
171
167
|
}
|
|
172
168
|
/**
|
|
173
|
-
*
|
|
174
|
-
*/
|
|
175
|
-
set_prune_policy(policy) {
|
|
176
|
-
const ptr0 = passStringToWasm0(policy, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
177
|
-
const len0 = WASM_VECTOR_LEN;
|
|
178
|
-
const ret = wasm.composition_set_prune_policy(this.__wbg_ptr, ptr0, len0);
|
|
179
|
-
if (ret[1]) {
|
|
180
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* `target` block by block, through this store. `options`: `rate`, `bits`, `until`, `cache`,
|
|
185
|
-
* `live`, `channels`.
|
|
169
|
+
* `target` block by block. `options`: `rate`, `bits`, `until`, `live`, `channels`.
|
|
186
170
|
* @param {string} target
|
|
187
171
|
* @param {number} block
|
|
188
172
|
* @param {any} options
|
|
@@ -194,20 +178,6 @@ export class Composition {
|
|
|
194
178
|
const ret = wasm.composition_stream(this.__wbg_ptr, ptr0, len0, block, options);
|
|
195
179
|
return ret;
|
|
196
180
|
}
|
|
197
|
-
/**
|
|
198
|
-
* `target` staged as `render` would, until `persist`; `{ stats, representations }`,
|
|
199
|
-
* the latter `representations()` for `readings`, null unasked. Options: `rate`, `bits`,
|
|
200
|
-
* `flop_budget`, `readings`.
|
|
201
|
-
* @param {string} target
|
|
202
|
-
* @param {any} options
|
|
203
|
-
* @returns {Promise<any>}
|
|
204
|
-
*/
|
|
205
|
-
warm(target, options) {
|
|
206
|
-
const ptr0 = passStringToWasm0(target, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
207
|
-
const len0 = WASM_VECTOR_LEN;
|
|
208
|
-
const ret = wasm.composition_warm(this.__wbg_ptr, ptr0, len0, options);
|
|
209
|
-
return ret;
|
|
210
|
-
}
|
|
211
181
|
}
|
|
212
182
|
if (Symbol.dispose) Composition.prototype[Symbol.dispose] = Composition.prototype.free;
|
|
213
183
|
|
|
@@ -282,7 +252,7 @@ export class Rendering {
|
|
|
282
252
|
return ret;
|
|
283
253
|
}
|
|
284
254
|
/**
|
|
285
|
-
* Every lookup this render made of
|
|
255
|
+
* Every lookup this render made of memory, and what each came to.
|
|
286
256
|
* @returns {any}
|
|
287
257
|
*/
|
|
288
258
|
stats() {
|
|
@@ -324,7 +294,7 @@ if (Symbol.dispose) Rendering.prototype[Symbol.dispose] = Rendering.prototype.fr
|
|
|
324
294
|
* A target block by block, reading `@notes` as the sum of its terms, as `@hall(t, x=@notes)`.
|
|
325
295
|
* A key-up replaces a term with one whose release is a number. A term leaves with its handle
|
|
326
296
|
* once the stream passes its support. An edit lands at the first block boundary
|
|
327
|
-
* once
|
|
297
|
+
* once memory answered it; `read` and getters answer meanwhile.
|
|
328
298
|
*/
|
|
329
299
|
export class Stream {
|
|
330
300
|
static __wrap(ptr) {
|
|
@@ -371,7 +341,8 @@ export class Stream {
|
|
|
371
341
|
return ret >>> 0;
|
|
372
342
|
}
|
|
373
343
|
/**
|
|
374
|
-
* `late`: edits landed
|
|
344
|
+
* `late`: edits landed late; `demands`: reads working out the note sum's asks; `built`:
|
|
345
|
+
* what the latest change did anew; `tier`: memory's disk traffic since it opened.
|
|
375
346
|
* @returns {any}
|
|
376
347
|
*/
|
|
377
348
|
counts() {
|
|
@@ -401,7 +372,7 @@ export class Stream {
|
|
|
401
372
|
return ret[0] === 0 ? undefined : ret[1];
|
|
402
373
|
}
|
|
403
374
|
/**
|
|
404
|
-
* Reads
|
|
375
|
+
* Reads what the next second plays, a few disk reads a call at most.
|
|
405
376
|
* @returns {Promise<void>}
|
|
406
377
|
*/
|
|
407
378
|
fetch() {
|
|
@@ -576,7 +547,7 @@ function __wbg_get_imports() {
|
|
|
576
547
|
__wbg__wbg_cb_unref_997e73d32238e655: function(arg0) {
|
|
577
548
|
arg0._wbg_cb_unref();
|
|
578
549
|
},
|
|
579
|
-
|
|
550
|
+
__wbg_arrayBuffer_8f03d5b78ebe3a4e: function(arg0) {
|
|
580
551
|
const ret = arg0.arrayBuffer();
|
|
581
552
|
return ret;
|
|
582
553
|
},
|
|
@@ -588,7 +559,7 @@ function __wbg_get_imports() {
|
|
|
588
559
|
const ret = arg0.call(arg1, arg2);
|
|
589
560
|
return ret;
|
|
590
561
|
}, arguments); },
|
|
591
|
-
|
|
562
|
+
__wbg_close_c7f4b860d2ea6a47: function(arg0) {
|
|
592
563
|
const ret = arg0.close();
|
|
593
564
|
return ret;
|
|
594
565
|
},
|
|
@@ -596,7 +567,7 @@ function __wbg_get_imports() {
|
|
|
596
567
|
const ret = Composition.__wrap(arg0);
|
|
597
568
|
return ret;
|
|
598
569
|
},
|
|
599
|
-
|
|
570
|
+
__wbg_createWritable_2a75642432c12d33: function(arg0) {
|
|
600
571
|
const ret = arg0.createWritable();
|
|
601
572
|
return ret;
|
|
602
573
|
},
|
|
@@ -608,15 +579,15 @@ function __wbg_get_imports() {
|
|
|
608
579
|
const ret = Array.from(arg0);
|
|
609
580
|
return ret;
|
|
610
581
|
},
|
|
611
|
-
|
|
582
|
+
__wbg_getDirectoryHandle_25b3be46cc47f02b: function(arg0, arg1, arg2, arg3) {
|
|
612
583
|
const ret = arg0.getDirectoryHandle(getStringFromWasm0(arg1, arg2), arg3);
|
|
613
584
|
return ret;
|
|
614
585
|
},
|
|
615
|
-
|
|
586
|
+
__wbg_getFileHandle_48a0d03d8fb43555: function(arg0, arg1, arg2, arg3) {
|
|
616
587
|
const ret = arg0.getFileHandle(getStringFromWasm0(arg1, arg2), arg3);
|
|
617
588
|
return ret;
|
|
618
589
|
},
|
|
619
|
-
|
|
590
|
+
__wbg_getFile_040bdebdde28065f: function(arg0) {
|
|
620
591
|
const ret = arg0.getFile();
|
|
621
592
|
return ret;
|
|
622
593
|
},
|
|
@@ -646,7 +617,7 @@ function __wbg_get_imports() {
|
|
|
646
617
|
const ret = Array.isArray(arg0);
|
|
647
618
|
return ret;
|
|
648
619
|
},
|
|
649
|
-
|
|
620
|
+
__wbg_keys_f97039285c3d52fb: function(arg0) {
|
|
650
621
|
const ret = arg0.keys();
|
|
651
622
|
return ret;
|
|
652
623
|
},
|
|
@@ -662,23 +633,23 @@ function __wbg_get_imports() {
|
|
|
662
633
|
const ret = arg0.length;
|
|
663
634
|
return ret;
|
|
664
635
|
},
|
|
665
|
-
|
|
636
|
+
__wbg_move_28983a826cc9330f: function(arg0, arg1, arg2, arg3) {
|
|
666
637
|
const ret = arg0.move(arg1, getStringFromWasm0(arg2, arg3));
|
|
667
638
|
return ret;
|
|
668
639
|
},
|
|
669
|
-
|
|
640
|
+
__wbg_name_7a0bc23891d2f56b: function(arg0, arg1) {
|
|
670
641
|
const ret = arg1.name;
|
|
671
642
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
672
643
|
const len1 = WASM_VECTOR_LEN;
|
|
673
644
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
674
645
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
675
646
|
},
|
|
676
|
-
|
|
677
|
-
const ret = new
|
|
647
|
+
__wbg_new_102e0b0848e3aea7: function(arg0, arg1) {
|
|
648
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
678
649
|
return ret;
|
|
679
650
|
},
|
|
680
|
-
|
|
681
|
-
const ret = new
|
|
651
|
+
__wbg_new_1da3429bc3c4541c: function(arg0) {
|
|
652
|
+
const ret = new Uint8Array(arg0);
|
|
682
653
|
return ret;
|
|
683
654
|
},
|
|
684
655
|
__wbg_new_8f72ed7c652bf5a2: function(arg0, arg1) {
|
|
@@ -725,18 +696,18 @@ function __wbg_get_imports() {
|
|
|
725
696
|
state0.a = 0;
|
|
726
697
|
}
|
|
727
698
|
},
|
|
728
|
-
|
|
699
|
+
__wbg_next_01020fab0b97b5c1: function(arg0) {
|
|
729
700
|
const ret = arg0.next();
|
|
730
701
|
return ret;
|
|
731
702
|
},
|
|
732
|
-
|
|
703
|
+
__wbg_parse_2ac530907013022a: function() { return handleError(function (arg0, arg1) {
|
|
733
704
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
734
705
|
return ret;
|
|
735
706
|
}, arguments); },
|
|
736
707
|
__wbg_prototypesetcall_ae9f5e7459250748: function(arg0, arg1, arg2) {
|
|
737
708
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
738
709
|
},
|
|
739
|
-
|
|
710
|
+
__wbg_query_5b1678c887e9e494: function(arg0) {
|
|
740
711
|
const ret = arg0.query();
|
|
741
712
|
return ret;
|
|
742
713
|
},
|
|
@@ -751,19 +722,19 @@ function __wbg_get_imports() {
|
|
|
751
722
|
const ret = Math.random();
|
|
752
723
|
return ret;
|
|
753
724
|
},
|
|
754
|
-
|
|
755
|
-
const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2));
|
|
725
|
+
__wbg_removeEntry_9bc2ca700ad0dc67: function(arg0, arg1, arg2, arg3) {
|
|
726
|
+
const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2), arg3);
|
|
756
727
|
return ret;
|
|
757
728
|
},
|
|
758
|
-
|
|
759
|
-
const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2)
|
|
729
|
+
__wbg_removeEntry_f3bdba746dbb58ab: function(arg0, arg1, arg2) {
|
|
730
|
+
const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2));
|
|
760
731
|
return ret;
|
|
761
732
|
},
|
|
762
733
|
__wbg_rendering_new: function(arg0) {
|
|
763
734
|
const ret = Rendering.__wrap(arg0);
|
|
764
735
|
return ret;
|
|
765
736
|
},
|
|
766
|
-
|
|
737
|
+
__wbg_request_e0d65e37b6bc0c8e: function(arg0, arg1, arg2, arg3) {
|
|
767
738
|
const ret = arg0.request(getStringFromWasm0(arg1, arg2), arg3);
|
|
768
739
|
return ret;
|
|
769
740
|
},
|
|
@@ -778,17 +749,17 @@ function __wbg_get_imports() {
|
|
|
778
749
|
__wbg_set_c41f8dbc07a2190f: function(arg0, arg1, arg2) {
|
|
779
750
|
arg0.set(getArrayF32FromWasm0(arg1, arg2));
|
|
780
751
|
},
|
|
781
|
-
|
|
752
|
+
__wbg_set_name_7e2b1a4388209082: function(arg0, arg1, arg2) {
|
|
782
753
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
783
754
|
},
|
|
784
|
-
|
|
755
|
+
__wbg_set_refusal_c7e0bdf118c521d3: function(arg0, arg1) {
|
|
785
756
|
arg0.refusal = arg1;
|
|
786
757
|
},
|
|
787
|
-
|
|
758
|
+
__wbg_size_5ff0355676e8eca9: function(arg0) {
|
|
788
759
|
const ret = arg0.size;
|
|
789
760
|
return ret;
|
|
790
761
|
},
|
|
791
|
-
|
|
762
|
+
__wbg_slice_2fbdf03b9a72bf02: function(arg0, arg1, arg2) {
|
|
792
763
|
const ret = arg0.slice(arg1, arg2);
|
|
793
764
|
return ret;
|
|
794
765
|
},
|
|
@@ -824,21 +795,21 @@ function __wbg_get_imports() {
|
|
|
824
795
|
const ret = arg0.then(arg1);
|
|
825
796
|
return ret;
|
|
826
797
|
},
|
|
827
|
-
|
|
798
|
+
__wbg_warn_b7a190536a7219ed: function(arg0, arg1) {
|
|
828
799
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
829
800
|
},
|
|
830
|
-
|
|
801
|
+
__wbg_write_c36a73d780533ec0: function(arg0, arg1) {
|
|
831
802
|
const ret = arg0.write(arg1);
|
|
832
803
|
return ret;
|
|
833
804
|
},
|
|
834
805
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
835
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
806
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 534, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
836
807
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hd55bb211d6a08150);
|
|
837
808
|
return ret;
|
|
838
809
|
},
|
|
839
810
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
840
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
841
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
811
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 86, ret: NamedExternref("Promise<any>"), inner_ret: Some(NamedExternref("Promise<any>")) }, mutable: true }) -> Externref`.
|
|
812
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h5b6034d5d61911ef);
|
|
842
813
|
return ret;
|
|
843
814
|
},
|
|
844
815
|
__wbindgen_generic_0000000000000003: function(arg0) {
|
|
@@ -867,8 +838,8 @@ function __wbg_get_imports() {
|
|
|
867
838
|
};
|
|
868
839
|
}
|
|
869
840
|
|
|
870
|
-
function
|
|
871
|
-
const ret = wasm.
|
|
841
|
+
function wasm_bindgen__convert__closures_____invoke__h5b6034d5d61911ef(arg0, arg1) {
|
|
842
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h5b6034d5d61911ef(arg0, arg1);
|
|
872
843
|
return ret;
|
|
873
844
|
}
|
|
874
845
|
|
package/sva_wasm_bg.wasm
CHANGED
|
Binary file
|