*/
class TableStatus : public Entry {
- private:
+private:
int maxslots;
- public:
- TableStatus(Slot * slot, int _maxslots) : Entry(slot),
+public:
+ TableStatus(Slot *slot, int _maxslots) : Entry(slot),
maxslots(_maxslots) {
- }
+ }
int getMaxSlots() { return maxslots; }
void encode(ByteBuffer *bb);
- int getSize() { return sizeof(int32_t)+sizeof(char); }
-
+ int getSize() { return sizeof(int32_t) + sizeof(char); }
+
char getType() { return TypeTableStatus; }
-
- Entry * getCopy(Slot * s) { return new TableStatus(s, maxslots); }
+
+ Entry *getCopy(Slot *s) { return new TableStatus(s, maxslots); }
};
-Entry * TableStatus_decode(Slot * slot, ByteBuffer * bb);
+Entry *TableStatus_decode(Slot *slot, ByteBuffer *bb);
#endif