예제 #1
0
 public Gfs_nde Subs_add(Gfs_nde nde) {
   int new_len = subs_len + 1;
   if (new_len > subs_max) { // ary too small >>> expand
     subs_max = new_len * 2;
     Gfs_nde[] new_subs = new Gfs_nde[subs_max];
     Array_.Copy_to(subs, 0, new_subs, 0, subs_len);
     subs = new_subs;
   }
   subs[subs_len] = nde;
   subs_len = new_len;
   return this;
 }
예제 #2
0
 public Gfs_nde Atrs_add(Gfs_nde nde) {
   int new_len = args_len + 1;
   if (new_len > args_max) { // ary too small >>> expand
     args_max = new_len * 2;
     Gfs_nde[] new_args = new Gfs_nde[args_max];
     Array_.Copy_to(args, 0, new_args, 0, args_len);
     args = new_args;
   }
   args[args_len] = nde;
   args_len = new_len;
   return this;
 }