2 import java.nio.ByteBuffer;
5 * TableStatus entries record the current size of the data structure
6 * in slots. Used to remember the size and to perform resizes.
12 class TableStatus extends Entry {
15 TableStatus(Slot slot, int _maxslots) {
24 static Entry decode(Slot slot, ByteBuffer bb) {
25 int maxslots=bb.getInt();
26 return new TableStatus(slot, maxslots);
29 void encode(ByteBuffer bb) {
30 bb.put(Entry.TypeTableStatus);
35 return Integer.BYTES+Byte.BYTES;
39 return Entry.TypeTableStatus;
42 Entry getCopy(Slot s) {
43 return new TableStatus(s, maxslots);