Example #1
0
        private int ConsoleLog(WebAssemblyInstance instance, params int[] args)
        {
            var bytes = instance.Memory.ReadBytes(args[0], args[1]);

            _output = Encoding.UTF8.GetString(bytes);
            return(0);
        }
Example #2
0
 public VirtualMachine(WebAssemblyInstance instance)
 {
     _instance = instance;
     _imports  = _instance.Imports;
     _module   = _instance.Module;
 }