bytebuffer
authorbdemsky <bdemsky@uci.edu>
Fri, 2 Mar 2018 19:37:51 +0000 (11:37 -0800)
committerbdemsky <bdemsky@uci.edu>
Fri, 2 Mar 2018 19:37:51 +0000 (11:37 -0800)
version2/src/C/ByteBuffer.h

index 8915606..7b8d2e4 100644 (file)
@@ -15,6 +15,11 @@ public:
        void position(int32_t newPosition);
        Array<char> *array();
 private:
+       ByteBuffer(Array<char> *array);
+       friend ByteBuffer *ByteBuffer_wrap(Array<char> *array);
+       friend ByteBuffer *ByteBuffer_allocate(uint size);
+       Array<char> *buffer;
+       uint offset;
 };
 ByteBuffer *ByteBuffer_wrap(Array<char> *array);
 ByteBuffer *ByteBuffer_allocate(uint size);