src/basis/utils/utf16.js
function fromBytes(input){
    var output = '';
    var len = input.length;
    var i = 0;
    var b1;
    var b2;

    while (i < len)
    {
      b1 = input[i++] || 0;
      b2 = input[i++] || 0;
      output += String.fromCharCode((b2 << 8) | b1);
    }
    return output;
  }
function fromBytes(input){
    var output = '';
    var len = input.length;
    var i = 0;
    var b1;
    var b2;

    while (i < len)
    {
      b1 = input[i++] || 0;
      b2 = input[i++] || 0;
      output += String.fromCharCode((b2 << 8) | b1);
    }
    return output;
  }
function fromBytes ( input ) { var output = '' ; var len = input . length ; var i = 0 ; var b1 ; var b2 ; while ( i < len ) { b1 = input [ i ++ ] || 0 ; b2 = input [ i ++ ] || 0 ; output += String . fromCharCode ( ( b2 << 8 ) | b1 ) ; } return output ; }
utf16 bytes array -> utf16 string
utf16 bytes array - > utf16 string