mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Fix a bug in ByteBufferDataAccess
This commit is contained in:
+1
-1
@@ -76,7 +76,7 @@ public class ByteBufferDataAccess extends AbstractData<ByteBuffer>
|
||||
using = ByteBuffer.allocate(bb.remaining());
|
||||
} else {
|
||||
using.position(0);
|
||||
using.limit(bb.capacity());
|
||||
using.limit(bb.remaining());
|
||||
}
|
||||
bytes.bytesStore(bytesStore, bb.position(), bb.remaining());
|
||||
bytes.read(using);
|
||||
|
||||
Reference in New Issue
Block a user