mirror of
https://github.com/corda/corda.git
synced 2025-01-09 06:23:04 +00:00
Fixed RandomAccessFile to update position after reads.
This commit is contained in:
parent
39bee886e3
commit
3b1c769d2b
@ -56,6 +56,8 @@ public class RandomAccessFile {
|
|||||||
throw new ArrayIndexOutOfBoundsException();
|
throw new ArrayIndexOutOfBoundsException();
|
||||||
|
|
||||||
copy(peer, position, buffer, offset, length);
|
copy(peer, position, buffer, offset, length);
|
||||||
|
|
||||||
|
position += length;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static native void copy(long peer, long position, byte[] buffer,
|
private static native void copy(long peer, long position, byte[] buffer,
|
||||||
|
Loading…
Reference in New Issue
Block a user