Fixed Buffer#put(byte[], int, int)

This commit is contained in:
thedaneeffect committed 2021-04-26 16:39:36 -04:00
1 parent cc9ff929b2
commit 2c5bcb4655
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -139,7 +139,7 @@ public class Buffer extends DoublyLinkedList.Node {
put1('\n');
}
public void put(byte[] src, int len, int off) {
public void put(byte[] src, int off, int len) {
System.arraycopy(src, off, data, position, len);
position += len;
}
@@ -345,7 +345,7 @@ public class Buffer extends DoublyLinkedList.Node {
byte[] encrypted = new BigInteger(raw).modPow(exponent, modulus).toByteArray();
position = 0;
put1(encrypted.length);
put(encrypted, encrypted.length, 0);
put(encrypted, 0, encrypted.length);
}
}
+1 -1
View File
@@ -6073,7 +6073,7 @@ public class Game extends GameShell {
for (int l1 = 0; l1 < 9; l1++) {
aBuffer_847.put4(archiveChecksum[l1]);
}
aBuffer_847.put(aBuffer_1192.data, aBuffer_1192.position, 0);
aBuffer_847.put(aBuffer_1192.data, 0, aBuffer_1192.position);
aBuffer_1192.random = new ISAACRandom(seed);
for (int j2 = 0; j2 < 4; j2++) {
seed[j2] += 50;