private int head;
private int tail;
private long oldestseqn;
-
+
SlotBuffer() {
array=new Slot[DEFAULT_SIZE+1];
}
return head - tail;
return (array.length + head) - tail;
}
-
+
void resize(int newsize) {
if (newsize == (array.length-1))
return;
return null;
index-= array.length;
}
-
+
if (index >= array.length ||
index >= head)
return null;
-
+
return array[index];
}