@scalable-vector-audio/sva-wasm 0.7.3 → 0.7.5
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 +28 -14
- package/sva_wasm.js +87 -61
- package/sva_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/sva_wasm.d.ts
CHANGED
|
@@ -74,35 +74,47 @@ export class Rendering {
|
|
|
74
74
|
/**
|
|
75
75
|
* A target block by block, reading `@notes` as the sum of its terms, as `@hall(t, x=@notes)`.
|
|
76
76
|
* A key-up replaces a term with one whose release is a number. A term leaves with its handle
|
|
77
|
-
* once
|
|
78
|
-
* answered it; `
|
|
77
|
+
* once the stream passes its support. An edit lands at the first block boundary
|
|
78
|
+
* after the store answered it; `read` and every getter answer meanwhile.
|
|
79
79
|
*/
|
|
80
80
|
export class Stream {
|
|
81
81
|
private constructor();
|
|
82
82
|
free(): void;
|
|
83
83
|
[Symbol.dispose](): void;
|
|
84
84
|
/**
|
|
85
|
-
* `term` summed into `@notes`.
|
|
85
|
+
* `term` summed into `@notes`. `options.at`: `"written"` (the stream's `t`) or
|
|
86
|
+
* `"landing"`, its sample 0 the sample it lands at.
|
|
86
87
|
*/
|
|
87
|
-
add(term: string): Promise<number>;
|
|
88
|
+
add(term: string, options?: any | null): Promise<number>;
|
|
88
89
|
/**
|
|
89
|
-
* `
|
|
90
|
+
* `late`: edits landed past where issued.
|
|
91
|
+
*/
|
|
92
|
+
counts(): any;
|
|
93
|
+
/**
|
|
94
|
+
* `expr` in place of the target. Each edit's promise rejects as a `conflict` where the
|
|
95
|
+
* page frees the stream first.
|
|
90
96
|
*/
|
|
91
97
|
edit(expr: string): Promise<void>;
|
|
92
98
|
/**
|
|
93
99
|
* Reads the stored samples the next second of blocks plays, as the stream plays on.
|
|
94
100
|
*/
|
|
95
101
|
fetch(): Promise<void>;
|
|
102
|
+
landed(handle: number): number | undefined;
|
|
96
103
|
/**
|
|
97
|
-
* Writes
|
|
98
|
-
*
|
|
104
|
+
* Writes frames from sample `at` into `out` (a SharedArrayBuffer view too) interleaved,
|
|
105
|
+
* `out[i * channels + c]`, and returns how many: `out.length / channels`, fewer at the end.
|
|
106
|
+
* A later `at` skips; live, what needed the span starts silent, in `stats().dropped`.
|
|
99
107
|
*/
|
|
100
|
-
|
|
108
|
+
read(at: number, out: Float32Array): number;
|
|
101
109
|
remove(handle: number): Promise<boolean>;
|
|
102
110
|
/**
|
|
103
|
-
* False where
|
|
111
|
+
* False where `handle` is gone. `"landing"`: where its add landed.
|
|
112
|
+
*/
|
|
113
|
+
replace(handle: number, term: string, options?: any | null): Promise<boolean>;
|
|
114
|
+
/**
|
|
115
|
+
* Each list the latest; its `pagination.count` counts all. `pruned`: the level a term under
|
|
116
|
+
* which for good leaves the sum, and each node cut, at the sample it is zero from.
|
|
104
117
|
*/
|
|
105
|
-
replace(handle: number, term: string): Promise<boolean>;
|
|
106
118
|
stats(): any;
|
|
107
119
|
/**
|
|
108
120
|
* `{ samples, priced_flops, waves }` since it opened.
|
|
@@ -159,23 +171,25 @@ export interface InitOutput {
|
|
|
159
171
|
readonly rendering_stats: (a: number) => [number, number, number];
|
|
160
172
|
readonly rendering_target: (a: number) => [number, number];
|
|
161
173
|
readonly rendering_work: (a: number) => [number, number, number];
|
|
162
|
-
readonly stream_add: (a: number, b: number, c: number) => any;
|
|
174
|
+
readonly stream_add: (a: number, b: number, c: number, d: number) => any;
|
|
163
175
|
readonly stream_block: (a: number) => number;
|
|
164
176
|
readonly stream_channels: (a: number) => number;
|
|
177
|
+
readonly stream_counts: (a: number) => [number, number, number];
|
|
165
178
|
readonly stream_edit: (a: number, b: number, c: number) => any;
|
|
166
179
|
readonly stream_end: (a: number) => [number, number];
|
|
167
180
|
readonly stream_fetch: (a: number) => any;
|
|
168
181
|
readonly stream_held_bytes: (a: number) => number;
|
|
169
|
-
readonly
|
|
182
|
+
readonly stream_landed: (a: number, b: number) => [number, number];
|
|
170
183
|
readonly stream_position: (a: number) => number;
|
|
184
|
+
readonly stream_read: (a: number, b: number, c: any) => [number, number, number];
|
|
171
185
|
readonly stream_remove: (a: number, b: number) => any;
|
|
172
|
-
readonly stream_replace: (a: number, b: number, c: number, d: number) => any;
|
|
186
|
+
readonly stream_replace: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
173
187
|
readonly stream_sample_rate: (a: number) => number;
|
|
174
188
|
readonly stream_stats: (a: number) => [number, number, number];
|
|
175
189
|
readonly stream_work: (a: number) => [number, number, number];
|
|
176
190
|
readonly wasm_bindgen__convert__closures_____invoke__h76bd71bceeca2b95: (a: number, b: number, c: any, d: any) => void;
|
|
177
191
|
readonly wasm_bindgen__convert__closures_____invoke__hd55bb211d6a08150: (a: number, b: number, c: any) => [number, number];
|
|
178
|
-
readonly
|
|
192
|
+
readonly wasm_bindgen__convert__closures_____invoke__hdbc466ca7f9f0a3d: (a: number, b: number) => any;
|
|
179
193
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
180
194
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
181
195
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/sva_wasm.js
CHANGED
|
@@ -323,8 +323,8 @@ if (Symbol.dispose) Rendering.prototype[Symbol.dispose] = Rendering.prototype.fr
|
|
|
323
323
|
/**
|
|
324
324
|
* A target block by block, reading `@notes` as the sum of its terms, as `@hall(t, x=@notes)`.
|
|
325
325
|
* A key-up replaces a term with one whose release is a number. A term leaves with its handle
|
|
326
|
-
* once
|
|
327
|
-
* answered it; `
|
|
326
|
+
* once the stream passes its support. An edit lands at the first block boundary
|
|
327
|
+
* after the store answered it; `read` and every getter answer meanwhile.
|
|
328
328
|
*/
|
|
329
329
|
export class Stream {
|
|
330
330
|
static __wrap(ptr) {
|
|
@@ -344,14 +344,16 @@ export class Stream {
|
|
|
344
344
|
wasm.__wbg_stream_free(ptr, 0);
|
|
345
345
|
}
|
|
346
346
|
/**
|
|
347
|
-
* `term` summed into `@notes`.
|
|
347
|
+
* `term` summed into `@notes`. `options.at`: `"written"` (the stream's `t`) or
|
|
348
|
+
* `"landing"`, its sample 0 the sample it lands at.
|
|
348
349
|
* @param {string} term
|
|
350
|
+
* @param {any | null} [options]
|
|
349
351
|
* @returns {Promise<number>}
|
|
350
352
|
*/
|
|
351
|
-
add(term) {
|
|
353
|
+
add(term, options) {
|
|
352
354
|
const ptr0 = passStringToWasm0(term, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
353
355
|
const len0 = WASM_VECTOR_LEN;
|
|
354
|
-
const ret = wasm.stream_add(this.__wbg_ptr, ptr0, len0);
|
|
356
|
+
const ret = wasm.stream_add(this.__wbg_ptr, ptr0, len0, isLikeNone(options) ? 0 : addToExternrefTable0(options));
|
|
355
357
|
return ret;
|
|
356
358
|
}
|
|
357
359
|
/**
|
|
@@ -369,7 +371,19 @@ export class Stream {
|
|
|
369
371
|
return ret >>> 0;
|
|
370
372
|
}
|
|
371
373
|
/**
|
|
372
|
-
* `
|
|
374
|
+
* `late`: edits landed past where issued.
|
|
375
|
+
* @returns {any}
|
|
376
|
+
*/
|
|
377
|
+
counts() {
|
|
378
|
+
const ret = wasm.stream_counts(this.__wbg_ptr);
|
|
379
|
+
if (ret[2]) {
|
|
380
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
381
|
+
}
|
|
382
|
+
return takeFromExternrefTable0(ret[0]);
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* `expr` in place of the target. Each edit's promise rejects as a `conflict` where the
|
|
386
|
+
* page frees the stream first.
|
|
373
387
|
* @param {string} expr
|
|
374
388
|
* @returns {Promise<void>}
|
|
375
389
|
*/
|
|
@@ -402,19 +416,12 @@ export class Stream {
|
|
|
402
416
|
return ret;
|
|
403
417
|
}
|
|
404
418
|
/**
|
|
405
|
-
*
|
|
406
|
-
*
|
|
407
|
-
* @param {Float32Array} out
|
|
408
|
-
* @returns {number}
|
|
419
|
+
* @param {number} handle
|
|
420
|
+
* @returns {number | undefined}
|
|
409
421
|
*/
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
const ret = wasm.stream_next(this.__wbg_ptr, ptr0, len0, out);
|
|
414
|
-
if (ret[2]) {
|
|
415
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
416
|
-
}
|
|
417
|
-
return ret[0] >>> 0;
|
|
422
|
+
landed(handle) {
|
|
423
|
+
const ret = wasm.stream_landed(this.__wbg_ptr, handle);
|
|
424
|
+
return ret[0] === 0 ? undefined : ret[1];
|
|
418
425
|
}
|
|
419
426
|
/**
|
|
420
427
|
* @returns {number}
|
|
@@ -423,6 +430,21 @@ export class Stream {
|
|
|
423
430
|
const ret = wasm.stream_position(this.__wbg_ptr);
|
|
424
431
|
return ret;
|
|
425
432
|
}
|
|
433
|
+
/**
|
|
434
|
+
* Writes frames from sample `at` into `out` (a SharedArrayBuffer view too) interleaved,
|
|
435
|
+
* `out[i * channels + c]`, and returns how many: `out.length / channels`, fewer at the end.
|
|
436
|
+
* A later `at` skips; live, what needed the span starts silent, in `stats().dropped`.
|
|
437
|
+
* @param {number} at
|
|
438
|
+
* @param {Float32Array} out
|
|
439
|
+
* @returns {number}
|
|
440
|
+
*/
|
|
441
|
+
read(at, out) {
|
|
442
|
+
const ret = wasm.stream_read(this.__wbg_ptr, at, out);
|
|
443
|
+
if (ret[2]) {
|
|
444
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
445
|
+
}
|
|
446
|
+
return ret[0] >>> 0;
|
|
447
|
+
}
|
|
426
448
|
/**
|
|
427
449
|
* @param {number} handle
|
|
428
450
|
* @returns {Promise<boolean>}
|
|
@@ -432,15 +454,16 @@ export class Stream {
|
|
|
432
454
|
return ret;
|
|
433
455
|
}
|
|
434
456
|
/**
|
|
435
|
-
* False where
|
|
457
|
+
* False where `handle` is gone. `"landing"`: where its add landed.
|
|
436
458
|
* @param {number} handle
|
|
437
459
|
* @param {string} term
|
|
460
|
+
* @param {any | null} [options]
|
|
438
461
|
* @returns {Promise<boolean>}
|
|
439
462
|
*/
|
|
440
|
-
replace(handle, term) {
|
|
463
|
+
replace(handle, term, options) {
|
|
441
464
|
const ptr0 = passStringToWasm0(term, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
442
465
|
const len0 = WASM_VECTOR_LEN;
|
|
443
|
-
const ret = wasm.stream_replace(this.__wbg_ptr, handle, ptr0, len0);
|
|
466
|
+
const ret = wasm.stream_replace(this.__wbg_ptr, handle, ptr0, len0, isLikeNone(options) ? 0 : addToExternrefTable0(options));
|
|
444
467
|
return ret;
|
|
445
468
|
}
|
|
446
469
|
/**
|
|
@@ -451,6 +474,8 @@ export class Stream {
|
|
|
451
474
|
return ret >>> 0;
|
|
452
475
|
}
|
|
453
476
|
/**
|
|
477
|
+
* Each list the latest; its `pagination.count` counts all. `pruned`: the level a term under
|
|
478
|
+
* which for good leaves the sum, and each node cut, at the sample it is zero from.
|
|
454
479
|
* @returns {any}
|
|
455
480
|
*/
|
|
456
481
|
stats() {
|
|
@@ -507,9 +532,6 @@ function __wbg_get_imports() {
|
|
|
507
532
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
508
533
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
509
534
|
},
|
|
510
|
-
__wbg___wbindgen_copy_to_typed_array_cccd104be8cf0b8d: function(arg0, arg1, arg2) {
|
|
511
|
-
new Uint8Array(arg2.buffer, arg2.byteOffset, arg2.byteLength).set(getArrayU8FromWasm0(arg0, arg1));
|
|
512
|
-
},
|
|
513
535
|
__wbg___wbindgen_debug_string_0e68cf47c9cbd9b0: function(arg0, arg1) {
|
|
514
536
|
const ret = debugString(arg1);
|
|
515
537
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -553,7 +575,7 @@ function __wbg_get_imports() {
|
|
|
553
575
|
__wbg__wbg_cb_unref_997e73d32238e655: function(arg0) {
|
|
554
576
|
arg0._wbg_cb_unref();
|
|
555
577
|
},
|
|
556
|
-
|
|
578
|
+
__wbg_arrayBuffer_365a1d1685a4dba2: function(arg0) {
|
|
557
579
|
const ret = arg0.arrayBuffer();
|
|
558
580
|
return ret;
|
|
559
581
|
},
|
|
@@ -565,7 +587,7 @@ function __wbg_get_imports() {
|
|
|
565
587
|
const ret = arg0.call(arg1, arg2);
|
|
566
588
|
return ret;
|
|
567
589
|
}, arguments); },
|
|
568
|
-
|
|
590
|
+
__wbg_close_3b77a51c1dcac752: function(arg0) {
|
|
569
591
|
const ret = arg0.close();
|
|
570
592
|
return ret;
|
|
571
593
|
},
|
|
@@ -573,7 +595,7 @@ function __wbg_get_imports() {
|
|
|
573
595
|
const ret = Composition.__wrap(arg0);
|
|
574
596
|
return ret;
|
|
575
597
|
},
|
|
576
|
-
|
|
598
|
+
__wbg_createWritable_bae1c9fdac782d30: function(arg0) {
|
|
577
599
|
const ret = arg0.createWritable();
|
|
578
600
|
return ret;
|
|
579
601
|
},
|
|
@@ -585,15 +607,15 @@ function __wbg_get_imports() {
|
|
|
585
607
|
const ret = Array.from(arg0);
|
|
586
608
|
return ret;
|
|
587
609
|
},
|
|
588
|
-
|
|
610
|
+
__wbg_getDirectoryHandle_473d1681af2be45f: function(arg0, arg1, arg2, arg3) {
|
|
589
611
|
const ret = arg0.getDirectoryHandle(getStringFromWasm0(arg1, arg2), arg3);
|
|
590
612
|
return ret;
|
|
591
613
|
},
|
|
592
|
-
|
|
614
|
+
__wbg_getFileHandle_99897b6c3d5e9074: function(arg0, arg1, arg2, arg3) {
|
|
593
615
|
const ret = arg0.getFileHandle(getStringFromWasm0(arg1, arg2), arg3);
|
|
594
616
|
return ret;
|
|
595
617
|
},
|
|
596
|
-
|
|
618
|
+
__wbg_getFile_88cdc01f283a7055: function(arg0) {
|
|
597
619
|
const ret = arg0.getFile();
|
|
598
620
|
return ret;
|
|
599
621
|
},
|
|
@@ -623,7 +645,7 @@ function __wbg_get_imports() {
|
|
|
623
645
|
const ret = Array.isArray(arg0);
|
|
624
646
|
return ret;
|
|
625
647
|
},
|
|
626
|
-
|
|
648
|
+
__wbg_keys_362be373e394df7e: function(arg0) {
|
|
627
649
|
const ret = arg0.keys();
|
|
628
650
|
return ret;
|
|
629
651
|
},
|
|
@@ -635,25 +657,29 @@ function __wbg_get_imports() {
|
|
|
635
657
|
const ret = arg0.length;
|
|
636
658
|
return ret;
|
|
637
659
|
},
|
|
638
|
-
|
|
660
|
+
__wbg_length_8768c6f6941913e3: function(arg0) {
|
|
661
|
+
const ret = arg0.length;
|
|
662
|
+
return ret;
|
|
663
|
+
},
|
|
664
|
+
__wbg_move_edc33b4719da771c: function(arg0, arg1, arg2, arg3) {
|
|
639
665
|
const ret = arg0.move(arg1, getStringFromWasm0(arg2, arg3));
|
|
640
666
|
return ret;
|
|
641
667
|
},
|
|
642
|
-
|
|
668
|
+
__wbg_name_6e7852ee6f2b7a8b: function(arg0, arg1) {
|
|
643
669
|
const ret = arg1.name;
|
|
644
670
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
645
671
|
const len1 = WASM_VECTOR_LEN;
|
|
646
672
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
647
673
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
648
674
|
},
|
|
649
|
-
__wbg_new_11a85008814947b0: function(arg0, arg1) {
|
|
650
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
651
|
-
return ret;
|
|
652
|
-
},
|
|
653
675
|
__wbg_new_1da3429bc3c4541c: function(arg0) {
|
|
654
676
|
const ret = new Uint8Array(arg0);
|
|
655
677
|
return ret;
|
|
656
678
|
},
|
|
679
|
+
__wbg_new_7a48d37babf8cc55: function(arg0, arg1) {
|
|
680
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
681
|
+
return ret;
|
|
682
|
+
},
|
|
657
683
|
__wbg_new_8f72ed7c652bf5a2: function(arg0, arg1) {
|
|
658
684
|
try {
|
|
659
685
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -698,18 +724,18 @@ function __wbg_get_imports() {
|
|
|
698
724
|
state0.a = 0;
|
|
699
725
|
}
|
|
700
726
|
},
|
|
701
|
-
|
|
727
|
+
__wbg_next_f2c96167b8bb87b6: function(arg0) {
|
|
702
728
|
const ret = arg0.next();
|
|
703
729
|
return ret;
|
|
704
730
|
},
|
|
705
|
-
|
|
731
|
+
__wbg_parse_08ae2a4e53713e2e: function() { return handleError(function (arg0, arg1) {
|
|
706
732
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
707
733
|
return ret;
|
|
708
734
|
}, arguments); },
|
|
709
735
|
__wbg_prototypesetcall_ae9f5e7459250748: function(arg0, arg1, arg2) {
|
|
710
736
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
711
737
|
},
|
|
712
|
-
|
|
738
|
+
__wbg_query_d9edccbfa6c0e728: function(arg0) {
|
|
713
739
|
const ret = arg0.query();
|
|
714
740
|
return ret;
|
|
715
741
|
},
|
|
@@ -724,11 +750,11 @@ function __wbg_get_imports() {
|
|
|
724
750
|
const ret = Math.random();
|
|
725
751
|
return ret;
|
|
726
752
|
},
|
|
727
|
-
|
|
753
|
+
__wbg_removeEntry_18600e5dff7f249d: function(arg0, arg1, arg2) {
|
|
728
754
|
const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2));
|
|
729
755
|
return ret;
|
|
730
756
|
},
|
|
731
|
-
|
|
757
|
+
__wbg_removeEntry_a339692b1dfb71b1: function(arg0, arg1, arg2, arg3) {
|
|
732
758
|
const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2), arg3);
|
|
733
759
|
return ret;
|
|
734
760
|
},
|
|
@@ -736,7 +762,7 @@ function __wbg_get_imports() {
|
|
|
736
762
|
const ret = Rendering.__wrap(arg0);
|
|
737
763
|
return ret;
|
|
738
764
|
},
|
|
739
|
-
|
|
765
|
+
__wbg_request_6a40511b9f0e2911: function(arg0, arg1, arg2, arg3) {
|
|
740
766
|
const ret = arg0.request(getStringFromWasm0(arg1, arg2), arg3);
|
|
741
767
|
return ret;
|
|
742
768
|
},
|
|
@@ -748,17 +774,20 @@ function __wbg_get_imports() {
|
|
|
748
774
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
749
775
|
return ret;
|
|
750
776
|
}, arguments); },
|
|
751
|
-
|
|
777
|
+
__wbg_set_c41f8dbc07a2190f: function(arg0, arg1, arg2) {
|
|
778
|
+
arg0.set(getArrayF32FromWasm0(arg1, arg2));
|
|
779
|
+
},
|
|
780
|
+
__wbg_set_name_4b9dcf4c83c869ae: function(arg0, arg1, arg2) {
|
|
752
781
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
753
782
|
},
|
|
754
|
-
|
|
783
|
+
__wbg_set_refusal_a7ebf7dd502b61d1: function(arg0, arg1) {
|
|
755
784
|
arg0.refusal = arg1;
|
|
756
785
|
},
|
|
757
|
-
|
|
786
|
+
__wbg_size_d020191da61b5cb0: function(arg0) {
|
|
758
787
|
const ret = arg0.size;
|
|
759
788
|
return ret;
|
|
760
789
|
},
|
|
761
|
-
|
|
790
|
+
__wbg_slice_434fd5f1e8c04836: function(arg0, arg1, arg2) {
|
|
762
791
|
const ret = arg0.slice(arg1, arg2);
|
|
763
792
|
return ret;
|
|
764
793
|
},
|
|
@@ -782,6 +811,10 @@ function __wbg_get_imports() {
|
|
|
782
811
|
const ret = Stream.__wrap(arg0);
|
|
783
812
|
return ret;
|
|
784
813
|
},
|
|
814
|
+
__wbg_subarray_03833f2a8828b0c8: function(arg0, arg1, arg2) {
|
|
815
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
816
|
+
return ret;
|
|
817
|
+
},
|
|
785
818
|
__wbg_then_7a850dae4493f353: function(arg0, arg1, arg2) {
|
|
786
819
|
const ret = arg0.then(arg1, arg2);
|
|
787
820
|
return ret;
|
|
@@ -790,21 +823,21 @@ function __wbg_get_imports() {
|
|
|
790
823
|
const ret = arg0.then(arg1);
|
|
791
824
|
return ret;
|
|
792
825
|
},
|
|
793
|
-
|
|
826
|
+
__wbg_warn_b627ad1e6b70ad0c: function(arg0, arg1) {
|
|
794
827
|
console.warn(getStringFromWasm0(arg0, arg1));
|
|
795
828
|
},
|
|
796
|
-
|
|
829
|
+
__wbg_write_13ecd27d53c671a8: function(arg0, arg1) {
|
|
797
830
|
const ret = arg0.write(arg1);
|
|
798
831
|
return ret;
|
|
799
832
|
},
|
|
800
833
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
801
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
834
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 538, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
802
835
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hd55bb211d6a08150);
|
|
803
836
|
return ret;
|
|
804
837
|
},
|
|
805
838
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
806
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
807
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
839
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 92, ret: NamedExternref("Promise<any>"), inner_ret: Some(NamedExternref("Promise<any>")) }, mutable: true }) -> Externref`.
|
|
840
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hdbc466ca7f9f0a3d);
|
|
808
841
|
return ret;
|
|
809
842
|
},
|
|
810
843
|
__wbindgen_generic_0000000000000003: function(arg0) {
|
|
@@ -833,8 +866,8 @@ function __wbg_get_imports() {
|
|
|
833
866
|
};
|
|
834
867
|
}
|
|
835
868
|
|
|
836
|
-
function
|
|
837
|
-
const ret = wasm.
|
|
869
|
+
function wasm_bindgen__convert__closures_____invoke__hdbc466ca7f9f0a3d(arg0, arg1) {
|
|
870
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__hdbc466ca7f9f0a3d(arg0, arg1);
|
|
838
871
|
return ret;
|
|
839
872
|
}
|
|
840
873
|
|
|
@@ -1013,13 +1046,6 @@ function makeMutClosure(arg0, arg1, f) {
|
|
|
1013
1046
|
return real;
|
|
1014
1047
|
}
|
|
1015
1048
|
|
|
1016
|
-
function passArrayF32ToWasm0(arg, malloc) {
|
|
1017
|
-
const ptr = malloc(arg.length * 4, 4) >>> 0;
|
|
1018
|
-
getFloat32ArrayMemory0().set(arg, ptr / 4);
|
|
1019
|
-
WASM_VECTOR_LEN = arg.length;
|
|
1020
|
-
return ptr;
|
|
1021
|
-
}
|
|
1022
|
-
|
|
1023
1049
|
function passArrayJsValueToWasm0(array, malloc) {
|
|
1024
1050
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
1025
1051
|
for (let i = 0; i < array.length; i++) {
|
package/sva_wasm_bg.wasm
CHANGED
|
Binary file
|