Fix a bug in ByteBufferDataAccess

This commit is contained in:
leventov
2016-03-05 18:39:16 +07:00
parent 1886bc1677
commit ce97577767
2 changed files with 42 additions and 1 deletions
@@ -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);