function loadFromBuffer(input) {
  var buf = new BunserBuf();
  var result = buf.append(input, true);
  if (buf.buf.readAvail()) {
    throw Error(
        'excess data found after input buffer, use BunserBuf instead');
  }
  if (typeof result === 'undefined') {
    throw Error(
        'no bser found in string and no error raised!?');
  }
  return result;
}
function loadFromBuffer(input) {
  var buf = new BunserBuf();
  var result = buf.append(input, true);
  if (buf.buf.readAvail()) {
    throw Error(
        'excess data found after input buffer, use BunserBuf instead');
  }
  if (typeof result === 'undefined') {
    throw Error(
        'no bser found in string and no error raised!?');
  }
  return result;
}
function loadFromBuffer ( input ) { var buf = new BunserBuf ( ) ; var result = buf . append ( input , true ) ; if ( buf . buf . readAvail ( ) ) { throw Error ( 'excess data found after input buffer, use BunserBuf instead' ) ; } if ( typeof result === 'undefined' ) { throw Error ( 'no bser found in string and no error raised!?' ) ; } return result ; }
synchronously BSER decode a string and return the value
synchronously BSER decode a string and return the value
Load from buffer