mirror of
https://github.com/corda/corda.git
synced 2025-04-07 19:34:41 +00:00
Fix ByteBuffer bugs
This commit is contained in:
parent
bcd5f5b94b
commit
da6dd8fba3
@ -60,6 +60,7 @@ public class ByteBuffer {
|
||||
if (position != 0) {
|
||||
System.arraycopy(array, arrayOffset+position, array, arrayOffset, remaining());
|
||||
}
|
||||
position=0;
|
||||
return this;
|
||||
}
|
||||
|
||||
@ -74,7 +75,7 @@ public class ByteBuffer {
|
||||
}
|
||||
|
||||
public ByteBuffer put(byte val) {
|
||||
array[position++] = val;
|
||||
array[arrayOffset+(position++)] = val;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user