rev185
This commit is contained in:
@@ -6,66 +6,66 @@ import net.runelite.mapping.ObfuscatedGetter;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
|
||||
@ObfuscatedName("mm")
|
||||
@ObfuscatedName("mz")
|
||||
@Implements("BufferedFile")
|
||||
public class BufferedFile {
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lmh;"
|
||||
)
|
||||
@Export("accessFile")
|
||||
AccessFile accessFile;
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedName("n")
|
||||
@Export("readBuffer")
|
||||
byte[] readBuffer;
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedGetter(
|
||||
longValue = -7294963934648719297L
|
||||
longValue = -3262164853072505693L
|
||||
)
|
||||
@Export("readBufferOffset")
|
||||
long readBufferOffset;
|
||||
@ObfuscatedName("r")
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1845108509
|
||||
intValue = -773924091
|
||||
)
|
||||
@Export("readBufferLength")
|
||||
int readBufferLength;
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("l")
|
||||
@Export("writeBuffer")
|
||||
byte[] writeBuffer;
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedGetter(
|
||||
longValue = -8408813098273597985L
|
||||
longValue = 2584269110563809293L
|
||||
)
|
||||
@Export("writeBufferOffset")
|
||||
long writeBufferOffset;
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1704738159
|
||||
intValue = 2068321047
|
||||
)
|
||||
@Export("writeBufferLength")
|
||||
int writeBufferLength;
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedGetter(
|
||||
longValue = -7862153769092129291L
|
||||
longValue = 6372981625088766905L
|
||||
)
|
||||
@Export("offset")
|
||||
long offset;
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedGetter(
|
||||
longValue = 3070804450108675653L
|
||||
longValue = 7685888135171302975L
|
||||
)
|
||||
@Export("fileLength")
|
||||
long fileLength;
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedGetter(
|
||||
longValue = 8830743471394433983L
|
||||
longValue = -4038469138705030175L
|
||||
)
|
||||
@Export("length")
|
||||
long length;
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedGetter(
|
||||
longValue = 3243026924650541047L
|
||||
longValue = 8140662089348975089L
|
||||
)
|
||||
@Export("fileOffset")
|
||||
long fileOffset;
|
||||
@@ -84,10 +84,10 @@ public class BufferedFile {
|
||||
this.offset = 0L;
|
||||
}
|
||||
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedName("a")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)V",
|
||||
garbageValue = "-55"
|
||||
garbageValue = "57"
|
||||
)
|
||||
@Export("close")
|
||||
public void close() throws IOException {
|
||||
@@ -95,7 +95,7 @@ public class BufferedFile {
|
||||
this.accessFile.close();
|
||||
}
|
||||
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedName("t")
|
||||
@Export("seek")
|
||||
public void seek(long var1) throws IOException {
|
||||
if (var1 < 0L) {
|
||||
@@ -105,30 +105,30 @@ public class BufferedFile {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(S)J",
|
||||
garbageValue = "15865"
|
||||
signature = "(B)J",
|
||||
garbageValue = "87"
|
||||
)
|
||||
@Export("length")
|
||||
public long length() {
|
||||
return this.length;
|
||||
}
|
||||
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([BI)V",
|
||||
garbageValue = "588547682"
|
||||
signature = "([BS)V",
|
||||
garbageValue = "1024"
|
||||
)
|
||||
@Export("readFully")
|
||||
public void readFully(byte[] var1) throws IOException {
|
||||
this.read(var1, 0, var1.length);
|
||||
}
|
||||
|
||||
@ObfuscatedName("r")
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([BIIB)V",
|
||||
garbageValue = "-41"
|
||||
signature = "([BIII)V",
|
||||
garbageValue = "2116217795"
|
||||
)
|
||||
@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 && (long)var3 + this.offset <= (long)this.writeBufferLength + this.writeBufferOffset) {
|
||||
if (-1L != this.writeBufferOffset && this.offset >= this.writeBufferOffset && this.offset + (long)var3 <= (long)this.writeBufferLength + this.writeBufferOffset) {
|
||||
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;
|
||||
@@ -202,14 +202,14 @@ public class BufferedFile {
|
||||
long var10 = -1L;
|
||||
if (this.writeBufferOffset >= var4 && this.writeBufferOffset < (long)var7 + var4) {
|
||||
var13 = this.writeBufferOffset;
|
||||
} else if (var4 >= this.writeBufferOffset && var4 < this.writeBufferOffset + (long)this.writeBufferLength) {
|
||||
} else if (var4 >= this.writeBufferOffset && var4 < (long)this.writeBufferLength + this.writeBufferOffset) {
|
||||
var13 = var4;
|
||||
}
|
||||
|
||||
if (this.writeBufferOffset + (long)this.writeBufferLength > var4 && (long)this.writeBufferLength + this.writeBufferOffset <= var4 + (long)var7) {
|
||||
if ((long)this.writeBufferLength + this.writeBufferOffset > var4 && this.writeBufferOffset + (long)this.writeBufferLength <= (long)var7 + var4) {
|
||||
var10 = (long)this.writeBufferLength + this.writeBufferOffset;
|
||||
} else if (var4 + (long)var7 > this.writeBufferOffset && var4 + (long)var7 <= this.writeBufferOffset + (long)this.writeBufferLength) {
|
||||
var10 = (long)var7 + var4;
|
||||
} else if ((long)var7 + var4 > this.writeBufferOffset && (long)var7 + var4 <= (long)this.writeBufferLength + this.writeBufferOffset) {
|
||||
var10 = var4 + (long)var7;
|
||||
}
|
||||
|
||||
if (var13 > -1L && var10 > var13) {
|
||||
@@ -231,15 +231,15 @@ public class BufferedFile {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)V",
|
||||
garbageValue = "77"
|
||||
garbageValue = "27"
|
||||
)
|
||||
@Export("load")
|
||||
void load() throws IOException {
|
||||
this.readBufferLength = 0;
|
||||
if (this.offset != this.fileOffset) {
|
||||
if (this.fileOffset != this.offset) {
|
||||
this.accessFile.seek(this.offset);
|
||||
this.fileOffset = this.offset;
|
||||
}
|
||||
@@ -261,23 +261,23 @@ public class BufferedFile {
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([BIII)V",
|
||||
garbageValue = "2016597591"
|
||||
garbageValue = "2065277497"
|
||||
)
|
||||
@Export("write")
|
||||
public void write(byte[] var1, int var2, int var3) throws IOException {
|
||||
try {
|
||||
if ((long)var3 + this.offset > this.length) {
|
||||
this.length = (long)var3 + this.offset;
|
||||
if (this.offset + (long)var3 > this.length) {
|
||||
this.length = this.offset + (long)var3;
|
||||
}
|
||||
|
||||
if (-1L != this.writeBufferOffset && (this.offset < this.writeBufferOffset || this.offset > (long)this.writeBufferLength + this.writeBufferOffset)) {
|
||||
if (-1L != this.writeBufferOffset && (this.offset < this.writeBufferOffset || this.offset > this.writeBufferOffset + (long)this.writeBufferLength)) {
|
||||
this.flush();
|
||||
}
|
||||
|
||||
if (-1L != this.writeBufferOffset && (long)var3 + this.offset > this.writeBufferOffset + (long)this.writeBuffer.length) {
|
||||
if (this.writeBufferOffset != -1L && (long)var3 + this.offset > 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;
|
||||
@@ -316,14 +316,14 @@ public class BufferedFile {
|
||||
long var6 = -1L;
|
||||
if (this.offset >= this.readBufferOffset && this.offset < (long)this.readBufferLength + this.readBufferOffset) {
|
||||
var9 = this.offset;
|
||||
} else if (this.readBufferOffset >= this.offset && this.readBufferOffset < this.offset + (long)var3) {
|
||||
} else if (this.readBufferOffset >= this.offset && this.readBufferOffset < (long)var3 + this.offset) {
|
||||
var9 = this.readBufferOffset;
|
||||
}
|
||||
|
||||
if ((long)var3 + this.offset > this.readBufferOffset && (long)var3 + this.offset <= this.readBufferOffset + (long)this.readBufferLength) {
|
||||
var6 = this.offset + (long)var3;
|
||||
} else if (this.readBufferOffset + (long)this.readBufferLength > this.offset && this.readBufferOffset + (long)this.readBufferLength <= this.offset + (long)var3) {
|
||||
var6 = (long)this.readBufferLength + this.readBufferOffset;
|
||||
if (this.offset + (long)var3 > this.readBufferOffset && this.offset + (long)var3 <= (long)this.readBufferLength + this.readBufferOffset) {
|
||||
var6 = (long)var3 + this.offset;
|
||||
} else if ((long)this.readBufferLength + this.readBufferOffset > this.offset && (long)this.readBufferLength + this.readBufferOffset <= this.offset + (long)var3) {
|
||||
var6 = this.readBufferOffset + (long)this.readBufferLength;
|
||||
}
|
||||
|
||||
if (var9 > -1L && var6 > var9) {
|
||||
@@ -339,21 +339,21 @@ public class BufferedFile {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "928727943"
|
||||
signature = "(B)V",
|
||||
garbageValue = "4"
|
||||
)
|
||||
@Export("flush")
|
||||
void flush() throws IOException {
|
||||
if (-1L != this.writeBufferOffset) {
|
||||
if (this.writeBufferOffset != -1L) {
|
||||
if (this.fileOffset != this.writeBufferOffset) {
|
||||
this.accessFile.seek(this.writeBufferOffset);
|
||||
this.fileOffset = this.writeBufferOffset;
|
||||
}
|
||||
|
||||
this.accessFile.write(this.writeBuffer, 0, this.writeBufferLength);
|
||||
this.fileOffset += (long)(this.writeBufferLength * -1599618673) * 1704738159L;
|
||||
this.fileOffset += 2068321047L * (long)(this.writeBufferLength * 1929925799);
|
||||
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 < this.writeBufferOffset + (long)this.writeBufferLength) {
|
||||
} else if (this.readBufferOffset >= this.writeBufferOffset && this.readBufferOffset < (long)this.writeBufferLength + this.writeBufferOffset) {
|
||||
var1 = this.readBufferOffset;
|
||||
}
|
||||
|
||||
if ((long)this.writeBufferLength + this.writeBufferOffset > this.readBufferOffset && (long)this.writeBufferLength + this.writeBufferOffset <= (long)this.readBufferLength + this.readBufferOffset) {
|
||||
var3 = (long)this.writeBufferLength + this.writeBufferOffset;
|
||||
} else if ((long)this.readBufferLength + this.readBufferOffset > this.writeBufferOffset && this.readBufferOffset + (long)this.readBufferLength <= this.writeBufferOffset + (long)this.writeBufferLength) {
|
||||
var3 = (long)this.readBufferLength + this.readBufferOffset;
|
||||
} else if (this.readBufferOffset + (long)this.readBufferLength > this.writeBufferOffset && this.readBufferOffset + (long)this.readBufferLength <= this.writeBufferOffset + (long)this.writeBufferLength) {
|
||||
var3 = this.readBufferOffset + (long)this.readBufferLength;
|
||||
}
|
||||
|
||||
if (var1 > -1L && var3 > var1) {
|
||||
|
||||
Reference in New Issue
Block a user