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);