This commit is contained in:
ThatGamerBlue
2021-05-19 12:59:30 +01:00
parent 7eb96d606a
commit 29a3d313a4
438 changed files with 51991 additions and 51730 deletions

View File

@@ -6,72 +6,72 @@ import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("nx")
@ObfuscatedName("ne")
@Implements("BufferedFile")
public class BufferedFile {
@ObfuscatedName("o")
@ObfuscatedName("c")
@ObfuscatedSignature(
descriptor = "Lni;"
descriptor = "Lng;"
)
@Export("accessFile")
AccessFile accessFile;
@ObfuscatedName("u")
@ObfuscatedName("o")
@Export("readBuffer")
byte[] readBuffer;
@ObfuscatedName("p")
@ObfuscatedName("g")
@ObfuscatedGetter(
longValue = 727584182909602275L
longValue = -6744150222670745989L
)
@Export("readBufferOffset")
long readBufferOffset;
@ObfuscatedName("b")
@ObfuscatedName("l")
@ObfuscatedGetter(
intValue = 927076747
intValue = 90173331
)
@Export("readBufferLength")
int readBufferLength;
@ObfuscatedName("e")
@ObfuscatedName("z")
@Export("writeBuffer")
byte[] writeBuffer;
@ObfuscatedName("k")
@ObfuscatedName("t")
@ObfuscatedGetter(
longValue = -3945136328699705067L
longValue = -1552296798150661587L
)
@Export("writeBufferOffset")
long writeBufferOffset;
@ObfuscatedName("g")
@ObfuscatedName("v")
@ObfuscatedGetter(
intValue = -523064543
intValue = 1183607275
)
@Export("writeBufferLength")
int writeBufferLength;
@ObfuscatedName("h")
@ObfuscatedName("b")
@ObfuscatedGetter(
longValue = -1861467906995136607L
longValue = -3662689780010320167L
)
@Export("offset")
long offset;
@ObfuscatedName("n")
@ObfuscatedName("q")
@ObfuscatedGetter(
longValue = 8191777692377419287L
longValue = 1224932206319687923L
)
@Export("fileLength")
long fileLength;
@ObfuscatedName("l")
@ObfuscatedName("i")
@ObfuscatedGetter(
longValue = 3225691643832492141L
longValue = -4763138432886005745L
)
@Export("length")
long length;
@ObfuscatedName("m")
@ObfuscatedName("x")
@ObfuscatedGetter(
longValue = 7712306994019717031L
longValue = -9205690103689237141L
)
@Export("fileOffset")
long fileOffset;
@ObfuscatedSignature(
descriptor = "(Lni;II)V"
descriptor = "(Lng;II)V"
)
public BufferedFile(AccessFile var1, int var2, int var3) throws IOException {
this.readBufferOffset = -1L; // L: 9
@@ -84,10 +84,10 @@ public class BufferedFile {
this.offset = 0L; // L: 24
} // L: 25
@ObfuscatedName("f")
@ObfuscatedName("h")
@ObfuscatedSignature(
descriptor = "(I)V",
garbageValue = "-1544475638"
garbageValue = "1520440653"
)
@Export("close")
public void close() throws IOException {
@@ -95,7 +95,7 @@ public class BufferedFile {
this.accessFile.close(); // L: 29
} // L: 30
@ObfuscatedName("o")
@ObfuscatedName("c")
@Export("seek")
public void seek(long var1) throws IOException {
if (var1 < 0L) { // L: 33
@@ -105,30 +105,30 @@ public class BufferedFile {
}
} // L: 35
@ObfuscatedName("u")
@ObfuscatedName("o")
@ObfuscatedSignature(
descriptor = "(B)J",
garbageValue = "4"
descriptor = "(I)J",
garbageValue = "-1480972779"
)
@Export("length")
public long length() {
return this.length; // L: 38
}
@ObfuscatedName("p")
@ObfuscatedName("g")
@ObfuscatedSignature(
descriptor = "([BI)V",
garbageValue = "-883591339"
garbageValue = "1394165113"
)
@Export("readFully")
public void readFully(byte[] var1) throws IOException {
this.read(var1, 0, var1.length); // L: 42
} // L: 43
@ObfuscatedName("b")
@ObfuscatedName("l")
@ObfuscatedSignature(
descriptor = "([BIII)V",
garbageValue = "1087602701"
descriptor = "([BIIB)V",
garbageValue = "8"
)
@Export("read")
public void read(byte[] var1, int var2, int var3) throws IOException {
@@ -137,7 +137,7 @@ public class BufferedFile {
throw new ArrayIndexOutOfBoundsException(var3 + var2 - var1.length);
}
if (-1L != this.writeBufferOffset && this.offset >= this.writeBufferOffset && (long)var3 + this.offset <= (long)this.writeBufferLength + this.writeBufferOffset) { // L: 48
if (-1L != this.writeBufferOffset && this.offset >= this.writeBufferOffset && this.offset + (long)var3 <= (long)this.writeBufferLength + this.writeBufferOffset) { // L: 48
System.arraycopy(this.writeBuffer, (int)(this.offset - this.writeBufferOffset), var1, var2, var3); // L: 49
this.offset += (long)var3; // L: 50
return; // L: 51
@@ -146,7 +146,7 @@ public class BufferedFile {
long var4 = this.offset; // L: 53
int var7 = var3; // L: 55
int var8;
if (this.offset >= this.readBufferOffset && this.offset < this.readBufferOffset + (long)this.readBufferLength) { // L: 56
if (this.offset >= this.readBufferOffset && this.offset < (long)this.readBufferLength + this.readBufferOffset) { // L: 56
var8 = (int)((long)this.readBufferLength - (this.offset - this.readBufferOffset)); // L: 57
if (var8 > var3) { // L: 58
var8 = var3;
@@ -184,7 +184,7 @@ public class BufferedFile {
this.offset += (long)var8; // L: 83
}
if (-1L != this.writeBufferOffset) { // L: 85
if (this.writeBufferOffset != -1L) { // L: 85
if (this.writeBufferOffset > this.offset && var3 > 0) { // L: 86
var8 = var2 + (int)(this.writeBufferOffset - this.offset); // L: 87
if (var8 > var3 + var2) { // L: 88
@@ -206,10 +206,10 @@ public class BufferedFile {
var13 = var4; // L: 101
}
if (this.writeBufferOffset + (long)this.writeBufferLength > var4 && (long)this.writeBufferLength + this.writeBufferOffset <= var4 + (long)var7) { // L: 103
if ((long)this.writeBufferLength + this.writeBufferOffset > var4 && (long)this.writeBufferLength + this.writeBufferOffset <= (long)var7 + var4) { // L: 103
var10 = this.writeBufferOffset + (long)this.writeBufferLength; // L: 104
} else if (var4 + (long)var7 > this.writeBufferOffset && var4 + (long)var7 <= (long)this.writeBufferLength + this.writeBufferOffset) { // L: 106
var10 = var4 + (long)var7; // L: 107
} else if (var4 + (long)var7 > this.writeBufferOffset && (long)var7 + var4 <= this.writeBufferOffset + (long)this.writeBufferLength) { // L: 106
var10 = (long)var7 + var4; // L: 107
}
if (var13 > -1L && var10 > var13) { // L: 109
@@ -231,10 +231,10 @@ public class BufferedFile {
}
} // L: 125
@ObfuscatedName("e")
@ObfuscatedName("z")
@ObfuscatedSignature(
descriptor = "(I)V",
garbageValue = "143357910"
garbageValue = "-2141358915"
)
@Export("load")
void load() throws IOException {
@@ -261,23 +261,23 @@ public class BufferedFile {
} // L: 142
@ObfuscatedName("k")
@ObfuscatedName("t")
@ObfuscatedSignature(
descriptor = "([BIII)V",
garbageValue = "265618871"
descriptor = "([BIIB)V",
garbageValue = "65"
)
@Export("write")
public void write(byte[] var1, int var2, int var3) throws IOException {
try {
if ((long)var3 + this.offset > this.length) { // L: 146
this.length = (long)var3 + this.offset;
if (this.offset + (long)var3 > this.length) { // L: 146
this.length = this.offset + (long)var3;
}
if (-1L != this.writeBufferOffset && (this.offset < this.writeBufferOffset || this.offset > (long)this.writeBufferLength + this.writeBufferOffset)) { // L: 147
if (this.writeBufferOffset != -1L && (this.offset < this.writeBufferOffset || this.offset > this.writeBufferOffset + (long)this.writeBufferLength)) { // L: 147
this.flush(); // L: 148
}
if (-1L != this.writeBufferOffset && this.offset + (long)var3 > this.writeBufferOffset + (long)this.writeBuffer.length) { // L: 150
if (-1L != this.writeBufferOffset && (long)var3 + this.offset > (long)this.writeBuffer.length + this.writeBufferOffset) { // L: 150
int var4 = (int)((long)this.writeBuffer.length - (this.offset - this.writeBufferOffset)); // L: 151
System.arraycopy(var1, var2, this.writeBuffer, (int)(this.offset - this.writeBufferOffset), var4); // L: 152
this.offset += (long)var4; // L: 153
@@ -289,7 +289,7 @@ public class BufferedFile {
if (var3 <= this.writeBuffer.length) { // L: 159
if (var3 > 0) { // L: 188
if (this.writeBufferOffset == -1L) { // L: 189
if (-1L == this.writeBufferOffset) { // L: 189
this.writeBufferOffset = this.offset;
}
@@ -301,7 +301,7 @@ public class BufferedFile {
}
} else {
if (this.offset != this.fileOffset) { // L: 160
if (this.fileOffset != this.offset) { // L: 160
this.accessFile.seek(this.offset); // L: 161
this.fileOffset = this.offset; // L: 162
}
@@ -322,8 +322,8 @@ public class BufferedFile {
if (this.offset + (long)var3 > this.readBufferOffset && (long)var3 + this.offset <= (long)this.readBufferLength + this.readBufferOffset) { // L: 175
var6 = this.offset + (long)var3; // L: 176
} else if (this.readBufferOffset + (long)this.readBufferLength > this.offset && (long)this.readBufferLength + this.readBufferOffset <= (long)var3 + this.offset) { // L: 178
var6 = this.readBufferOffset + (long)this.readBufferLength; // L: 179
} else if (this.readBufferOffset + (long)this.readBufferLength > this.offset && this.readBufferOffset + (long)this.readBufferLength <= (long)var3 + this.offset) { // L: 178
var6 = (long)this.readBufferLength + this.readBufferOffset; // L: 179
}
if (var9 > -1L && var6 > var9) { // L: 181
@@ -339,21 +339,21 @@ public class BufferedFile {
}
} // L: 186 193 200
@ObfuscatedName("g")
@ObfuscatedName("v")
@ObfuscatedSignature(
descriptor = "(B)V",
garbageValue = "-18"
descriptor = "(I)V",
garbageValue = "-1478008586"
)
@Export("flush")
void flush() throws IOException {
if (this.writeBufferOffset != -1L) { // L: 203
if (this.fileOffset != this.writeBufferOffset) { // L: 204
if (-1L != this.writeBufferOffset) { // L: 203
if (this.writeBufferOffset != this.fileOffset) { // L: 204
this.accessFile.seek(this.writeBufferOffset); // L: 205
this.fileOffset = this.writeBufferOffset; // L: 206
}
this.accessFile.write(this.writeBuffer, 0, this.writeBufferLength); // L: 208
this.fileOffset += (long)this.writeBufferLength * -50342862159609855L; // L: 209
this.fileOffset += (long)this.writeBufferLength * -2235576888984600575L; // L: 209
if (this.fileOffset > this.fileLength) { // L: 210
this.fileLength = this.fileOffset;
}
@@ -362,14 +362,14 @@ public class BufferedFile {
long var3 = -1L; // L: 212
if (this.writeBufferOffset >= this.readBufferOffset && this.writeBufferOffset < (long)this.readBufferLength + this.readBufferOffset) { // L: 213
var1 = this.writeBufferOffset; // L: 214
} else if (this.readBufferOffset >= this.writeBufferOffset && this.readBufferOffset < this.writeBufferOffset + (long)this.writeBufferLength) { // L: 216
} else if (this.readBufferOffset >= this.writeBufferOffset && this.readBufferOffset < (long)this.writeBufferLength + this.writeBufferOffset) { // L: 216
var1 = this.readBufferOffset; // L: 217
}
if ((long)this.writeBufferLength + this.writeBufferOffset > this.readBufferOffset && (long)this.writeBufferLength + this.writeBufferOffset <= (long)this.readBufferLength + this.readBufferOffset) { // L: 219
if ((long)this.writeBufferLength + this.writeBufferOffset > this.readBufferOffset && this.writeBufferOffset + (long)this.writeBufferLength <= (long)this.readBufferLength + this.readBufferOffset) { // L: 219
var3 = (long)this.writeBufferLength + this.writeBufferOffset; // L: 220
} else if (this.readBufferOffset + (long)this.readBufferLength > this.writeBufferOffset && this.readBufferOffset + (long)this.readBufferLength <= (long)this.writeBufferLength + this.writeBufferOffset) { // L: 222
var3 = this.readBufferOffset + (long)this.readBufferLength; // L: 223
var3 = (long)this.readBufferLength + this.readBufferOffset; // L: 223
}
if (var1 > -1L && var3 > var1) { // L: 225