We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a53e15 commit 62ffe2bCopy full SHA for 62ffe2b
core/src/org/jsl/collider/DataBlock.java
@@ -30,7 +30,7 @@ public class DataBlock
30
public DataBlock( ByteBuffer buf )
31
{
32
ww = buf;
33
- rw = buf.asReadOnlyBuffer();
+ rw = buf.duplicate();
34
}
35
36
public final DataBlock reset()
core/src/org/jsl/collider/RetainableDataBlock.java
@@ -55,7 +55,7 @@ protected void finalRelease()
55
public RetainableDataBlock( ByteBuffer byteBuffer )
56
57
ww = byteBuffer;
58
- rw = new BufferImpl( byteBuffer.asReadOnlyBuffer(), this );
+ rw = new BufferImpl( byteBuffer.duplicate(), this );
59
60
61
public final void release()
0 commit comments