From: bdemsky Date: Fri, 2 Mar 2018 19:37:51 +0000 (-0800) Subject: bytebuffer X-Git-Url: http://plrg.eecs.uci.edu/git/?p=iotcloud.git;a=commitdiff_plain;h=04bc90cf1dfcac3b6443d9a5b1866c6dabea77d3;hp=d60b25736c12e51307a9c32cacf39671e42b9fbd bytebuffer --- 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);