feat: works better
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
// @generated file from wasmbuild -- do not edit
|
||||
// deno-lint-ignore-file
|
||||
// deno-fmt-ignore-file
|
||||
// source-hash: 7b04f965aad3774d53b13732c0edf9275f95b5a7
|
||||
// source-hash: c23573003acd9b1ce4fd13ea7740772e68a77471
|
||||
let wasm;
|
||||
|
||||
const cachedTextDecoder = new TextDecoder("utf-8", {
|
||||
ignoreBOM: true,
|
||||
fatal: true,
|
||||
});
|
||||
|
||||
cachedTextDecoder.decode();
|
||||
|
||||
let cachedUint8Memory0;
|
||||
function getUint8Memory0() {
|
||||
if (cachedUint8Memory0.byteLength === 0) {
|
||||
@@ -12,6 +19,10 @@ function getUint8Memory0() {
|
||||
return cachedUint8Memory0;
|
||||
}
|
||||
|
||||
function getStringFromWasm0(ptr, len) {
|
||||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
||||
}
|
||||
|
||||
let WASM_VECTOR_LEN = 0;
|
||||
|
||||
function passArray8ToWasm0(arg, malloc) {
|
||||
@@ -28,17 +39,6 @@ function getInt32Memory0() {
|
||||
}
|
||||
return cachedInt32Memory0;
|
||||
}
|
||||
|
||||
const cachedTextDecoder = new TextDecoder("utf-8", {
|
||||
ignoreBOM: true,
|
||||
fatal: true,
|
||||
});
|
||||
|
||||
cachedTextDecoder.decode();
|
||||
|
||||
function getStringFromWasm0(ptr, len) {
|
||||
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
||||
}
|
||||
/**
|
||||
* @param {Uint8Array} image_bytes
|
||||
* @returns {string}
|
||||
@@ -59,7 +59,11 @@ export function decode_qr(image_bytes) {
|
||||
}
|
||||
|
||||
const imports = {
|
||||
__wbindgen_placeholder__: {},
|
||||
__wbindgen_placeholder__: {
|
||||
__wbindgen_throw: function (arg0, arg1) {
|
||||
throw new Error(getStringFromWasm0(arg0, arg1));
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
const wasm_url = new URL("rs_lib_bg.wasm", import.meta.url);
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user