/* tslint:disable */ import * as wasm from './wow2_bg'; const lTextDecoder = typeof TextDecoder === 'undefined' ? require('util').TextDecoder : TextDecoder; let cachedTextDecoder = new lTextDecoder('utf-8'); let cachegetUint8Memory = null; function getUint8Memory() { if (cachegetUint8Memory === null || cachegetUint8Memory.buffer !== wasm.memory.buffer) { cachegetUint8Memory = new Uint8Array(wasm.memory.buffer); } return cachegetUint8Memory; } function getStringFromWasm(ptr, len) { return cachedTextDecoder.decode(getUint8Memory().subarray(ptr, ptr + len)); } export function __wbg_alert_1d9360cb431713de(arg0, arg1) { let varg0 = getStringFromWasm(arg0, arg1); alert(varg0); } const lTextEncoder = typeof TextEncoder === 'undefined' ? require('util').TextEncoder : TextEncoder; let cachedTextEncoder = new lTextEncoder('utf-8'); let WASM_VECTOR_LEN = 0; function passStringToWasm(arg) { const buf = cachedTextEncoder.encode(arg); const ptr = wasm.__wbindgen_malloc(buf.length); getUint8Memory().set(buf, ptr); WASM_VECTOR_LEN = buf.length; return ptr; } /** * @param {string} arg0 * @returns {void} */ export function greet(arg0) { const ptr0 = passStringToWasm(arg0); const len0 = WASM_VECTOR_LEN; try { return wasm.greet(ptr0, len0); } finally { wasm.__wbindgen_free(ptr0, len0 * 1); } } export function __wbindgen_throw(ptr, len) { throw new Error(getStringFromWasm(ptr, len)); }