rename files
[iotcloud.git] / version2 / src / C / TableStatus.cpp
diff --git a/version2/src/C/TableStatus.cpp b/version2/src/C/TableStatus.cpp
new file mode 100644 (file)
index 0000000..f61a6ae
--- /dev/null
@@ -0,0 +1,12 @@
+#include "TableStatus.h"
+#include "ByteBuffer.h"
+
+Entry *TableStatus_decode(Slot *slot, ByteBuffer *bb) {
+       int maxslots = bb->getInt();
+       return new TableStatus(slot, maxslots);
+}
+
+void TableStatus::encode(ByteBuffer *bb) {
+       bb->put(TypeTableStatus);
+       bb->putInt(maxslots);
+}