tabbing
[iotcloud.git] / version2 / src / C / ByteBuffer.h
index 2c87e445280bbe5bd454e6aad593e8fc71be92bb..89156066d19b33445a48e7e1c6ca61e4f0cdd0bd 100644 (file)
@@ -3,10 +3,19 @@
 #include "common.h"
 
 class ByteBuffer {
- public:
+public:
        void put(char c);
+       void putInt(int32_t l);
        void putLong(int64_t l);
+       void put(Array<char> *array);
        int64_t getLong();
- private:
+       int32_t getInt();
+       char get();
+       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