@Override
  protected void readFromBuffer(ByteArray buff, int limit) {
    int _loc_5 = 0;
    while (buff.remaining() > limit) {
      _loc_5 = ReadUtils.read$TYPE_UINT32(buff);
      switch (_loc_5 >> 3) {
        case 1:
          if (userId != 0) {
            show("Bad data format: ChatPrivateQueryRsp.userId cannot be set twice.");
          }
          this.userId = ReadUtils.read$TYPE_INT32(buff);
          break;

        case 2:
          if (userName != null) {
            show("Bad data format: ChatPrivateQueryRsp.userName cannot be set twice.");
          }
          this.userName = ReadUtils.read$TYPE_STRING(buff);
          break;

        default:
          error("unknown data", buff);
          return;
      }
    }
  }
示例#2
0
  @Override
  protected void readFromBuffer(ByteArray buff, int limit) {
    int _loc_4 = 0;
    int _loc_3 = 0;
    while (buff.remaining() > limit) {
      _loc_4 = ReadUtils.read$TYPE_UINT32(buff);
      switch (_loc_4 >> 3) {
        case 1:
          if (_loc_3 != 0) {
            show("Bad data format: CombatInfoRsp.isAuto cannot be set twice.");
          }
          _loc_3 = _loc_3 + 1;
          this.isAuto = ReadUtils.read$TYPE_BOOL(buff);
          break;

        default:
          error("unknown data", buff);
          return;
      }
    }
  }