projects
/
iotcloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tabbing
[iotcloud.git]
/
version2
/
src
/
C
/
TableStatus.h
diff --git
a/version2/src/C/TableStatus.h
b/version2/src/C/TableStatus.h
index ce2576e97702b42ba9a09c5237fe34b1b3706154..e7978c08bc477f143460a59791381b94e9fe9dde 100644
(file)
--- a/
version2/src/C/TableStatus.h
+++ b/
version2/src/C/TableStatus.h
@@
-11,21
+11,21
@@
*/
class TableStatus : public Entry {
*/
class TableStatus : public Entry {
-
private:
+private:
int maxslots;
int maxslots;
-
public:
-
TableStatus(Slot *
slot, int _maxslots) : Entry(slot),
+public:
+
TableStatus(Slot *
slot, int _maxslots) : Entry(slot),
maxslots(_maxslots) {
maxslots(_maxslots) {
-
}
+ }
int getMaxSlots() { return maxslots; }
void encode(ByteBuffer *bb);
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; }
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
#endif