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;
36 return Integer.SIZE/8+Byte.SIZE/8;
40 return Entry.TypeTableStatus;
43 Entry getCopy(Slot s) {
44 return new TableStatus(s, maxslots);