acl-js/src-js/decoder.js
// Free memory from our WASM heap
Free memory from our WASM heap
Free memory from our WASM heap
free(mem) {
    if (!mem) {
      return  
    }
    if (!wasmState.module) {
      throw new Error('WASM module not ready')
    }
    if (!(mem instanceof WASMMemory)) {
      throw new TypeError("'mem' must be a WASMMemory instance")
    }
    if (mem._wasmState !== wasmState) {
      throw new Error("Memory doesn't belong to this WASM heap")
    }
    if (mem._memPtr !== 0) {
      wasmState.instance.exports.free(mem._memPtr)
      mem._memPtr = 0
    }
  }
free ( mem ) { if ( ! mem ) { return } if ( ! wasmState . module ) { throw new Error ( 'WASM module not ready' ) } if ( ! ( mem instanceof WASMMemory ) ) { throw new TypeError ( "'mem' must be a WASMMemory instance" ) } if ( mem . _wasmState !== wasmState ) { throw new Error ( "Memory doesn't belong to this WASM heap" ) } if ( mem . _memPtr !== 0 ) { wasmState . instance . exports . free ( mem . _memPtr ) mem . _memPtr = 0 } }
Free memory from our WASM heap
Free memory from our WASM heap
// Nothing to do