Reply – Re: Api copy works when copying individual elements but not the entire buffer
Your Name
Subject
Message
or Cancel
In Reply To
Re: Api copy works when copying individual elements but not the entire buffer
— by gouessej gouessej
Hi

The first put() method you use is relative whereas the second put() method you use is absolute (cf. the Java documentation). In the first case, just call clBuffer.getBuffer().rewind() before calling clQueue.putWriteBuffer(clBuffer, true) and it should work.
Julien Gouesse | Personal blog | Website