function buf2binstring(buf, len) {
	  // use fallback for big arrays to avoid stack overflow
	  if (len < 65537) {
	    if ((buf.subarray && STR_APPLY_UIA_OK) || (!buf.subarray && STR_APPLY_OK)) {
	      return String.fromCharCode.apply(null, utils.shrinkBuf(buf, len));
	    }
	  }
	
	  var result = '';
	  for (var i=0; i < len; i++) {
	    result += String.fromCharCode(buf[i]);
	  }
	  return result;
	}
// Helper (used in 2 places)
Helper (used in 2 places)
Helper ( used in 2 places )
function buf2binstring(buf, len) {
	  if (len < 65537) {
	    if ((buf.subarray && STR_APPLY_UIA_OK) || (!buf.subarray && STR_APPLY_OK)) {
	      return String.fromCharCode.apply(null, utils.shrinkBuf(buf, len));
	    }
	  }
	  var result = '';
	  for (var i=0; i < len; i++) {
	    result += String.fromCharCode(buf[i]);
	  }
	  return result;
	}
function buf2binstring ( buf , len ) { if ( len < 65537 ) { if ( ( buf . subarray && STR_APPLY_UIA_OK ) || ( ! buf . subarray && STR_APPLY_OK ) ) { return String . fromCharCode . apply ( null , utils . shrinkBuf ( buf , len ) ) ; } } var result = '' ; for ( var i = 0 ; i < len ; i ++ ) { result += String . fromCharCode ( buf [ i ] ) ; } return result ; }
Helper (used in 2 places)
Helper ( used in 2 places )
// use fallback for big arrays to avoid stack overflow