src/basis/utils/utf16.js
function toBytes(input){
    var output = [];
    var len = input.length;

    for (var i = 0; i < len; i++)
    {
      var c = input.charCodeAt(i);
      output.push(c & 0xFF, c >> 8);
    }

    return output;
  }
function toBytes(input){
    var output = [];
    var len = input.length;

    for (var i = 0; i < len; i++)
    {
      var c = input.charCodeAt(i);
      output.push(c & 0xFF, c >> 8);
    }

    return output;
  }
function toBytes ( input ) { var output = [ ] ; var len = input . length ; for ( var i = 0 ; i < len ; i ++ ) { var c = input . charCodeAt ( i ) ; output . push ( c & 0xFF , c >> 8 ) ; } return output ; }
utf16 string -> utf16 bytes array
utf16 string - > utf16 bytes array