mons-rust 0.1.3 → 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/mons_rust.d.ts +0 -5
- package/mons_rust.js +0 -23
- package/mons_rust_bg.wasm +0 -0
- package/package.json +1 -1
package/mons_rust.d.ts
CHANGED
package/mons_rust.js
CHANGED
|
@@ -84,29 +84,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
84
84
|
ptr = ptr >>> 0;
|
|
85
85
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
86
86
|
}
|
|
87
|
-
/**
|
|
88
|
-
* @param {string} name
|
|
89
|
-
* @returns {string}
|
|
90
|
-
*/
|
|
91
|
-
module.exports.greet = function(name) {
|
|
92
|
-
let deferred2_0;
|
|
93
|
-
let deferred2_1;
|
|
94
|
-
try {
|
|
95
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
96
|
-
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
97
|
-
const len0 = WASM_VECTOR_LEN;
|
|
98
|
-
wasm.greet(retptr, ptr0, len0);
|
|
99
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
100
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
101
|
-
deferred2_0 = r0;
|
|
102
|
-
deferred2_1 = r1;
|
|
103
|
-
return getStringFromWasm0(r0, r1);
|
|
104
|
-
} finally {
|
|
105
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
106
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
|
|
110
87
|
/**
|
|
111
88
|
* @param {string} fen1
|
|
112
89
|
* @param {string} fen2
|
package/mons_rust_bg.wasm
CHANGED
|
Binary file
|