edits
[iotcloud.git] / version2 / src / C / NewKey.cc
index c6afe550743d7104abba059b0d45249510f37ae8..a8a9526a12a5e6699c19af19f54a3c2d345b8706 100644 (file)
@@ -1,5 +1,6 @@
 #include "NewKey.h"
 #include "ByteBuffer.h"
+#include "IoTString.h"
 
 Entry *decode(Slot *slot, ByteBuffer *bb) {
        int keylength = bb->getInt();
@@ -7,7 +8,7 @@ Entry *decode(Slot *slot, ByteBuffer *bb) {
        bb->get(key);
        int64_t machineid = bb->getLong();
 
-       return new NewKey(slot, IoTString.shallow(key), machineid);
+       return new NewKey(slot, IoTString_shallow(key), machineid);
 }
 
 void NewKey::encode(ByteBuffer *bb) {
@@ -18,5 +19,5 @@ void NewKey::encode(ByteBuffer *bb) {
 }
 
 int NewKey::getSize() {
-       return sizeof(int64_t) + sizeof(char) + sizeof(int32_t) + key.length();
+       return sizeof(int64_t) + sizeof(char) + sizeof(int32_t) + key->length();
 }