this.io = new Board();

this.io = new Board();

// function: convert string to integer array
// Used for mapping char* in C/C++ to JS
// Example: convStrToIntArr("hello")
var convStrToIntArr = function(str) {
  intArr = [];
  for (i = 0; i < str.length; i++) {
    intArr[i] = str.charCodeAt(i);
  }
  return intArr;
}

// function: convert integer array to string
var convIntArrToStr = function(intArr) {
  str = "";
  for (i = 0; i < intArr.length; i++) {
    str += String.fromCharCode(intArr[i]);
  }
  return str;
}

Add two functions to io_rpc_brower.js - convStrToIntArr Convert string to integer array Used for mapping char* in C/C++ to JS Example: convStrToIntArr("hello") - convIntArrToStr convert integer array to string
Add two functions to io_rpc_brower.js
 - convStrToIntArr
   Convert string to integer array
   Used for mapping char* in C/C++ to JS
   Example: convStrToIntArr("hello")
 - convIntArrToStr
   convert integer array to string
