mirror of
https://github.com/corda/corda.git
synced 2024-12-29 09:18:58 +00:00
Fixed bulk put offset for sliced arrays
This commit is contained in:
parent
cc8dd6d8c0
commit
bcd5f5b94b
@ -89,7 +89,7 @@ public class ByteBuffer {
|
||||
}
|
||||
|
||||
public ByteBuffer put(byte[] arr, int offset, int len) {
|
||||
System.arraycopy(arr, offset, array, arrayOffset, len);
|
||||
System.arraycopy(arr, offset, array, arrayOffset+position, len);
|
||||
position += len;
|
||||
return this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user