code: private int
  sectionToWire(DNSOutput out, int section, Compression c,
  	      int maxLength)
  {
  	int n = sections[section].size();
  	int pos = out.current();
  	int rendered = 0;
  	Record lastrec = null;
  
  	for (int i = 0; i < n; i++) {
  		Record rec = (Record)sections[section].get(i);
  		if (lastrec != null && !sameSet(rec, lastrec)) {
  			pos = out.current();
  			rendered = i;
  		}
  		lastrec = rec;
  		rec.toWire(out, section, c);
  		if (out.current() > maxLength) {
  			out.jump(pos);
  			return n - rendered;
  		}
  	}
  	return 0;
  }
docs: /* Returns the number of records not successfully rendered.