public boolean write(aos.apib.OutStream out, aos.apib.Base o) {
      PeerInfo__Tuple v = (PeerInfo__Tuple)o;
      int i = -1;
      while ((i = out.nextField(i, this)) >= 0) {
        switch (i) {
      case 0:
	out.putInt(v.id, i, __def.id, this);
	break;
   case 1:
	out.putBool(v.isAlive, i, __def.isAlive, this);
	break;
        case 2:
          out.writeBaseClasses(o, this);
          break;
        default:
          if (i >= 0 && i <= 2) break;
          out.error("Writer for PeerInfo__Tuple: illegal field number:"+i);
          return false;
        }
      }
      return true;
    }