chore: rev 190
This commit is contained in:
@@ -6,72 +6,72 @@ import net.runelite.mapping.ObfuscatedGetter;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
|
||||
@ObfuscatedName("ms")
|
||||
@ObfuscatedName("mn")
|
||||
@Implements("BufferedFile")
|
||||
public class BufferedFile {
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lmb;"
|
||||
signature = "Lmy;"
|
||||
)
|
||||
@Export("accessFile")
|
||||
AccessFile accessFile;
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("q")
|
||||
@Export("readBuffer")
|
||||
byte[] readBuffer;
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedGetter(
|
||||
longValue = -6621394340155458391L
|
||||
longValue = 183648846884359197L
|
||||
)
|
||||
@Export("readBufferOffset")
|
||||
long readBufferOffset;
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -498492055
|
||||
intValue = 1553809797
|
||||
)
|
||||
@Export("readBufferLength")
|
||||
int readBufferLength;
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedName("g")
|
||||
@Export("writeBuffer")
|
||||
byte[] writeBuffer;
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedGetter(
|
||||
longValue = -915874801967299919L
|
||||
longValue = -2985208532115456417L
|
||||
)
|
||||
@Export("writeBufferOffset")
|
||||
long writeBufferOffset;
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 730352763
|
||||
intValue = 457646537
|
||||
)
|
||||
@Export("writeBufferLength")
|
||||
int writeBufferLength;
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedName("a")
|
||||
@ObfuscatedGetter(
|
||||
longValue = 8841745747932636313L
|
||||
longValue = 2498512168954711415L
|
||||
)
|
||||
@Export("offset")
|
||||
long offset;
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedGetter(
|
||||
longValue = -5167130975185536305L
|
||||
longValue = -3113265757492371609L
|
||||
)
|
||||
@Export("fileLength")
|
||||
long fileLength;
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedGetter(
|
||||
longValue = -2996772461190095265L
|
||||
longValue = 6675249402129041573L
|
||||
)
|
||||
@Export("length")
|
||||
long length;
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedGetter(
|
||||
longValue = -2630268660887985841L
|
||||
longValue = 1854591788033998237L
|
||||
)
|
||||
@Export("fileOffset")
|
||||
long fileOffset;
|
||||
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lmb;II)V"
|
||||
signature = "(Lmy;II)V"
|
||||
)
|
||||
public BufferedFile(AccessFile var1, int var2, int var3) throws IOException {
|
||||
this.readBufferOffset = -1L;
|
||||
@@ -84,10 +84,10 @@ public class BufferedFile {
|
||||
this.offset = 0L;
|
||||
}
|
||||
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "-859079735"
|
||||
garbageValue = "159388731"
|
||||
)
|
||||
@Export("close")
|
||||
public void close() throws IOException {
|
||||
@@ -95,7 +95,7 @@ public class BufferedFile {
|
||||
this.accessFile.close();
|
||||
}
|
||||
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("o")
|
||||
@Export("seek")
|
||||
public void seek(long var1) throws IOException {
|
||||
if (var1 < 0L) {
|
||||
@@ -105,30 +105,30 @@ public class BufferedFile {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)J",
|
||||
garbageValue = "65"
|
||||
signature = "(I)J",
|
||||
garbageValue = "243378114"
|
||||
)
|
||||
@Export("length")
|
||||
public long length() {
|
||||
return this.length;
|
||||
}
|
||||
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([BI)V",
|
||||
garbageValue = "1780472721"
|
||||
garbageValue = "1810550632"
|
||||
)
|
||||
@Export("readFully")
|
||||
public void readFully(byte[] var1) throws IOException {
|
||||
this.read(var1, 0, var1.length);
|
||||
}
|
||||
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([BIII)V",
|
||||
garbageValue = "1941673100"
|
||||
signature = "([BIIB)V",
|
||||
garbageValue = "-4"
|
||||
)
|
||||
@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 (this.writeBufferOffset != -1L && this.offset >= this.writeBufferOffset && this.offset + (long)var3 <= this.writeBufferOffset + (long)this.writeBufferLength) {
|
||||
if (this.writeBufferOffset != -1L && this.offset >= this.writeBufferOffset && (long)var3 + this.offset <= this.writeBufferOffset + (long)this.writeBufferLength) {
|
||||
System.arraycopy(this.writeBuffer, (int)(this.offset - this.writeBufferOffset), var1, var2, var3);
|
||||
this.offset += (long)var3;
|
||||
return;
|
||||
@@ -146,7 +146,7 @@ public class BufferedFile {
|
||||
long var4 = this.offset;
|
||||
int var7 = var3;
|
||||
int var8;
|
||||
if (this.offset >= this.readBufferOffset && this.offset < this.readBufferOffset + (long)this.readBufferLength) {
|
||||
if (this.offset >= this.readBufferOffset && this.offset < (long)this.readBufferLength + this.readBufferOffset) {
|
||||
var8 = (int)((long)this.readBufferLength - (this.offset - this.readBufferOffset));
|
||||
if (var8 > var3) {
|
||||
var8 = var3;
|
||||
@@ -184,7 +184,7 @@ public class BufferedFile {
|
||||
this.offset += (long)var8;
|
||||
}
|
||||
|
||||
if (-1L != this.writeBufferOffset) {
|
||||
if (this.writeBufferOffset != -1L) {
|
||||
if (this.writeBufferOffset > this.offset && var3 > 0) {
|
||||
var8 = var2 + (int)(this.writeBufferOffset - this.offset);
|
||||
if (var8 > var3 + var2) {
|
||||
@@ -202,13 +202,13 @@ public class BufferedFile {
|
||||
long var10 = -1L;
|
||||
if (this.writeBufferOffset >= var4 && this.writeBufferOffset < var4 + (long)var7) {
|
||||
var13 = this.writeBufferOffset;
|
||||
} else if (var4 >= this.writeBufferOffset && var4 < (long)this.writeBufferLength + this.writeBufferOffset) {
|
||||
} else if (var4 >= this.writeBufferOffset && var4 < this.writeBufferOffset + (long)this.writeBufferLength) {
|
||||
var13 = var4;
|
||||
}
|
||||
|
||||
if ((long)this.writeBufferLength + this.writeBufferOffset > var4 && this.writeBufferOffset + (long)this.writeBufferLength <= (long)var7 + var4) {
|
||||
var10 = this.writeBufferOffset + (long)this.writeBufferLength;
|
||||
} else if ((long)var7 + var4 > this.writeBufferOffset && var4 + (long)var7 <= (long)this.writeBufferLength + this.writeBufferOffset) {
|
||||
if ((long)this.writeBufferLength + this.writeBufferOffset > var4 && (long)this.writeBufferLength + this.writeBufferOffset <= var4 + (long)var7) {
|
||||
var10 = (long)this.writeBufferLength + this.writeBufferOffset;
|
||||
} else if (var4 + (long)var7 > this.writeBufferOffset && (long)var7 + var4 <= this.writeBufferOffset + (long)this.writeBufferLength) {
|
||||
var10 = var4 + (long)var7;
|
||||
}
|
||||
|
||||
@@ -231,10 +231,10 @@ public class BufferedFile {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "-2013306645"
|
||||
garbageValue = "1659142795"
|
||||
)
|
||||
@Export("load")
|
||||
void load() throws IOException {
|
||||
@@ -261,23 +261,23 @@ public class BufferedFile {
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([BIIB)V",
|
||||
garbageValue = "-1"
|
||||
signature = "([BIII)V",
|
||||
garbageValue = "1917244707"
|
||||
)
|
||||
@Export("write")
|
||||
public void write(byte[] var1, int var2, int var3) throws IOException {
|
||||
try {
|
||||
if (this.offset + (long)var3 > this.length) {
|
||||
this.length = this.offset + (long)var3;
|
||||
this.length = (long)var3 + this.offset;
|
||||
}
|
||||
|
||||
if (this.writeBufferOffset != -1L && (this.offset < this.writeBufferOffset || this.offset > (long)this.writeBufferLength + this.writeBufferOffset)) {
|
||||
this.flush();
|
||||
}
|
||||
|
||||
if (this.writeBufferOffset != -1L && (long)var3 + this.offset > this.writeBufferOffset + (long)this.writeBuffer.length) {
|
||||
if (this.writeBufferOffset != -1L && this.offset + (long)var3 > this.writeBufferOffset + (long)this.writeBuffer.length) {
|
||||
int var4 = (int)((long)this.writeBuffer.length - (this.offset - this.writeBufferOffset));
|
||||
System.arraycopy(var1, var2, this.writeBuffer, (int)(this.offset - this.writeBufferOffset), var4);
|
||||
this.offset += (long)var4;
|
||||
@@ -289,7 +289,7 @@ public class BufferedFile {
|
||||
|
||||
if (var3 <= this.writeBuffer.length) {
|
||||
if (var3 > 0) {
|
||||
if (this.writeBufferOffset == -1L) {
|
||||
if (-1L == this.writeBufferOffset) {
|
||||
this.writeBufferOffset = this.offset;
|
||||
}
|
||||
|
||||
@@ -314,21 +314,21 @@ public class BufferedFile {
|
||||
|
||||
long var9 = -1L;
|
||||
long var6 = -1L;
|
||||
if (this.offset >= this.readBufferOffset && this.offset < this.readBufferOffset + (long)this.readBufferLength) {
|
||||
if (this.offset >= this.readBufferOffset && this.offset < (long)this.readBufferLength + this.readBufferOffset) {
|
||||
var9 = this.offset;
|
||||
} else if (this.readBufferOffset >= this.offset && this.readBufferOffset < (long)var3 + this.offset) {
|
||||
} else if (this.readBufferOffset >= this.offset && this.readBufferOffset < this.offset + (long)var3) {
|
||||
var9 = this.readBufferOffset;
|
||||
}
|
||||
|
||||
if (this.offset + (long)var3 > this.readBufferOffset && (long)var3 + this.offset <= this.readBufferOffset + (long)this.readBufferLength) {
|
||||
var6 = (long)var3 + this.offset;
|
||||
} else if ((long)this.readBufferLength + this.readBufferOffset > this.offset && this.readBufferOffset + (long)this.readBufferLength <= (long)var3 + this.offset) {
|
||||
var6 = (long)this.readBufferLength + this.readBufferOffset;
|
||||
} else if ((long)this.readBufferLength + this.readBufferOffset > this.offset && (long)this.readBufferLength + this.readBufferOffset <= (long)var3 + this.offset) {
|
||||
var6 = this.readBufferOffset + (long)this.readBufferLength;
|
||||
}
|
||||
|
||||
if (var9 > -1L && var6 > var9) {
|
||||
int var8 = (int)(var6 - var9);
|
||||
System.arraycopy(var1, (int)((long)var2 + var9 - this.offset), this.readBuffer, (int)(var9 - this.readBufferOffset), var8);
|
||||
System.arraycopy(var1, (int)(var9 + (long)var2 - this.offset), this.readBuffer, (int)(var9 - this.readBufferOffset), var8);
|
||||
}
|
||||
|
||||
this.offset += (long)var3;
|
||||
@@ -339,21 +339,21 @@ public class BufferedFile {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "-985506123"
|
||||
garbageValue = "-1996252506"
|
||||
)
|
||||
@Export("flush")
|
||||
void flush() throws IOException {
|
||||
if (-1L != this.writeBufferOffset) {
|
||||
if (this.fileOffset != this.writeBufferOffset) {
|
||||
if (this.writeBufferOffset != -1L) {
|
||||
if (this.writeBufferOffset != this.fileOffset) {
|
||||
this.accessFile.seek(this.writeBufferOffset);
|
||||
this.fileOffset = this.writeBufferOffset;
|
||||
}
|
||||
|
||||
this.accessFile.write(this.writeBuffer, 0, this.writeBufferLength);
|
||||
this.fileOffset += (long)this.writeBufferLength * 257304554331176961L;
|
||||
this.fileOffset += (long)this.writeBufferLength * -743906103946903551L;
|
||||
if (this.fileOffset > this.fileLength) {
|
||||
this.fileLength = this.fileOffset;
|
||||
}
|
||||
@@ -362,14 +362,14 @@ public class BufferedFile {
|
||||
long var3 = -1L;
|
||||
if (this.writeBufferOffset >= this.readBufferOffset && this.writeBufferOffset < this.readBufferOffset + (long)this.readBufferLength) {
|
||||
var1 = this.writeBufferOffset;
|
||||
} else if (this.readBufferOffset >= this.writeBufferOffset && this.readBufferOffset < (long)this.writeBufferLength + this.writeBufferOffset) {
|
||||
} else if (this.readBufferOffset >= this.writeBufferOffset && this.readBufferOffset < this.writeBufferOffset + (long)this.writeBufferLength) {
|
||||
var1 = this.readBufferOffset;
|
||||
}
|
||||
|
||||
if ((long)this.writeBufferLength + this.writeBufferOffset > this.readBufferOffset && this.writeBufferOffset + (long)this.writeBufferLength <= this.readBufferOffset + (long)this.readBufferLength) {
|
||||
if (this.writeBufferOffset + (long)this.writeBufferLength > this.readBufferOffset && this.writeBufferOffset + (long)this.writeBufferLength <= this.readBufferOffset + (long)this.readBufferLength) {
|
||||
var3 = this.writeBufferOffset + (long)this.writeBufferLength;
|
||||
} else if ((long)this.readBufferLength + this.readBufferOffset > this.writeBufferOffset && (long)this.readBufferLength + this.readBufferOffset <= (long)this.writeBufferLength + this.writeBufferOffset) {
|
||||
var3 = (long)this.readBufferLength + this.readBufferOffset;
|
||||
} else if (this.readBufferOffset + (long)this.readBufferLength > this.writeBufferOffset && (long)this.readBufferLength + this.readBufferOffset <= (long)this.writeBufferLength + this.writeBufferOffset) {
|
||||
var3 = this.readBufferOffset + (long)this.readBufferLength;
|
||||
}
|
||||
|
||||
if (var1 > -1L && var3 > var1) {
|
||||
|
||||
Reference in New Issue
Block a user