8 void putInt(int32_t l);
9 void putLong(int64_t l);
10 void put(Array<char> *array);
14 void get(Array<char> *array);
15 void position(int32_t newPosition);
16 void releaseArray() {buffer = NULL;}
18 ~ByteBuffer() {if (buffer != NULL) delete buffer;}
21 ByteBuffer(Array<char> *array);
22 friend ByteBuffer *ByteBuffer_wrap(Array<char> *array);
23 friend ByteBuffer *ByteBuffer_allocate(uint size);
27 ByteBuffer *ByteBuffer_wrap(Array<char> *array);
28 ByteBuffer *ByteBuffer_allocate(uint size);