code: 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;
  }
docs: synchronously BSER decode a string and return the value