edits
[iotcloud.git] / version2 / src / C / ByteBuffer.h
index 92d4f16ee8e112015582e5aceed0e9a17bf508b8..a5b6dcf9b7bee044d468833af34a2a06cb3a18b3 100644 (file)
@@ -5,9 +5,17 @@
 class ByteBuffer {
 public:
        void put(char c);
+       void putInt(int32_t l);
        void putLong(int64_t l);
+       void put(Array<char> * array);
        int64_t getLong();
+       int32_t getInt();
        char get();
-private:
+       void get(Array<char> * array);
+       void position(int32_t newPosition);
+       Array<char> * array();
+ private:
 };
+ByteBuffer * ByteBuffer_wrap(Array<char> * array);
+ByteBuffer * ByteBuffer_allocate(uint size);
 #endif