X-Git-Url: http://plrg.eecs.uci.edu/git/?p=iotcloud.git;a=blobdiff_plain;f=version2%2Fsrc%2FC%2FByteBuffer.h;h=7b8d2e4ed9c71295af4e6761aaedd7cdc6d7e039;hp=89156066d19b33445a48e7e1c6ca61e4f0cdd0bd;hb=04bc90cf1dfcac3b6443d9a5b1866c6dabea77d3;hpb=d60b25736c12e51307a9c32cacf39671e42b9fbd diff --git a/version2/src/C/ByteBuffer.h b/version2/src/C/ByteBuffer.h index 8915606..7b8d2e4 100644 --- a/version2/src/C/ByteBuffer.h +++ b/version2/src/C/ByteBuffer.h @@ -15,6 +15,11 @@ public: void position(int32_t newPosition); Array *array(); private: + ByteBuffer(Array *array); + friend ByteBuffer *ByteBuffer_wrap(Array *array); + friend ByteBuffer *ByteBuffer_allocate(uint size); + Array *buffer; + uint offset; }; ByteBuffer *ByteBuffer_wrap(Array *array); ByteBuffer *ByteBuffer_allocate(uint size);