if(offsets[i] == -1)
if(offsets[i] == -1) {
        public short getNextTID() {        	for(short i = 0; i < offsets.length; i++) {        		if(offsets[i] == -1)        			return i;        	}        	short tid = (short)offsets.length;        	ph.nextTID = (short)(ph.nextTID * 2);        	short[] t = new short[ph.nextTID];        	Arrays.fill(t, (short)-1);        	System.arraycopy(offsets, 0, t, 0, offsets.length);        	offsets = t;        	return tid;        }