project: Rev 182
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("mn")
|
||||
@ObfuscatedName("mw")
|
||||
@Implements("BufferedFile")
|
||||
public class BufferedFile {
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lma;"
|
||||
signature = "Lmm;"
|
||||
)
|
||||
@Export("accessFile")
|
||||
AccessFile accessFile;
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedName("i")
|
||||
@Export("readBuffer")
|
||||
byte[] readBuffer;
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedGetter(
|
||||
longValue = -5630904549833157093L
|
||||
longValue = 6930797311862622501L
|
||||
)
|
||||
@Export("readBufferOffset")
|
||||
long readBufferOffset;
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1225882999
|
||||
intValue = 324861765
|
||||
)
|
||||
@Export("readBufferLength")
|
||||
int readBufferLength;
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedName("n")
|
||||
@Export("writeBuffer")
|
||||
byte[] writeBuffer;
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedGetter(
|
||||
longValue = 225596692322175817L
|
||||
longValue = 2678508088338929319L
|
||||
)
|
||||
@Export("writeBufferOffset")
|
||||
long writeBufferOffset;
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -299149629
|
||||
intValue = -1286336757
|
||||
)
|
||||
@Export("writeBufferLength")
|
||||
int writeBufferLength;
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedGetter(
|
||||
longValue = -8683938208221515491L
|
||||
longValue = -1907180336926601455L
|
||||
)
|
||||
@Export("offset")
|
||||
long offset;
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedGetter(
|
||||
longValue = 6190164439722426599L
|
||||
longValue = 4723760243484879195L
|
||||
)
|
||||
@Export("fileLength")
|
||||
long fileLength;
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedGetter(
|
||||
longValue = 6621326623419959019L
|
||||
longValue = 2095185296289778233L
|
||||
)
|
||||
@Export("length")
|
||||
long length;
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedGetter(
|
||||
longValue = -8187358352341044117L
|
||||
longValue = -4232607220009999679L
|
||||
)
|
||||
@Export("fileOffset")
|
||||
long fileOffset;
|
||||
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lma;II)V"
|
||||
signature = "(Lmm;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("q")
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(B)V",
|
||||
garbageValue = "41"
|
||||
signature = "(I)V",
|
||||
garbageValue = "-2018301044"
|
||||
)
|
||||
@Export("close")
|
||||
public void close() throws IOException {
|
||||
@@ -95,39 +95,40 @@ public class BufferedFile {
|
||||
this.accessFile.close();
|
||||
}
|
||||
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedName("j")
|
||||
@Export("seek")
|
||||
public void seek(long var1) throws IOException {
|
||||
if (var1 < 0L) {
|
||||
throw new IOException("");
|
||||
} else {
|
||||
this.offset = var1;
|
||||
}
|
||||
this.offset = var1;
|
||||
}
|
||||
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(S)J",
|
||||
garbageValue = "21690"
|
||||
signature = "(B)J",
|
||||
garbageValue = "54"
|
||||
)
|
||||
@Export("length")
|
||||
public long length() {
|
||||
return this.length;
|
||||
}
|
||||
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([BI)V",
|
||||
garbageValue = "-981743247"
|
||||
garbageValue = "-1442283725"
|
||||
)
|
||||
@Export("readFully")
|
||||
public void readFully(byte[] var1) throws IOException {
|
||||
this.read(var1, 0, var1.length);
|
||||
}
|
||||
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([BIII)V",
|
||||
garbageValue = "1308534455"
|
||||
garbageValue = "-481612055"
|
||||
)
|
||||
@Export("read")
|
||||
public void read(byte[] var1, int var2, int var3) throws IOException {
|
||||
@@ -136,7 +137,7 @@ public class BufferedFile {
|
||||
throw new ArrayIndexOutOfBoundsException(var3 + var2 - var1.length);
|
||||
}
|
||||
|
||||
if (-1L != this.writeBufferOffset && this.offset >= this.writeBufferOffset && this.offset + (long)var3 <= this.writeBufferOffset + (long)this.writeBufferLength) {
|
||||
if (-1L != this.writeBufferOffset && 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;
|
||||
@@ -145,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;
|
||||
@@ -199,15 +200,15 @@ public class BufferedFile {
|
||||
|
||||
long var13 = -1L;
|
||||
long var10 = -1L;
|
||||
if (this.writeBufferOffset >= var4 && this.writeBufferOffset < var4 + (long)var7) {
|
||||
if (this.writeBufferOffset >= var4 && this.writeBufferOffset < (long)var7 + var4) {
|
||||
var13 = this.writeBufferOffset;
|
||||
} else if (var4 >= this.writeBufferOffset && var4 < this.writeBufferOffset + (long)this.writeBufferLength) {
|
||||
var13 = var4;
|
||||
}
|
||||
|
||||
if (this.writeBufferOffset + (long)this.writeBufferLength > var4 && this.writeBufferOffset + (long)this.writeBufferLength <= var4 + (long)var7) {
|
||||
var10 = (long)this.writeBufferLength + this.writeBufferOffset;
|
||||
} else if (var4 + (long)var7 > this.writeBufferOffset && (long)var7 + var4 <= this.writeBufferOffset + (long)this.writeBufferLength) {
|
||||
if (this.writeBufferOffset + (long)this.writeBufferLength > var4 && (long)this.writeBufferLength + this.writeBufferOffset <= var4 + (long)var7) {
|
||||
var10 = this.writeBufferOffset + (long)this.writeBufferLength;
|
||||
} else if ((long)var7 + var4 > this.writeBufferOffset && (long)var7 + var4 <= this.writeBufferOffset + (long)this.writeBufferLength) {
|
||||
var10 = var4 + (long)var7;
|
||||
}
|
||||
|
||||
@@ -230,10 +231,10 @@ public class BufferedFile {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("l")
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "-364747525"
|
||||
garbageValue = "-263792175"
|
||||
)
|
||||
@Export("load")
|
||||
void load() throws IOException {
|
||||
@@ -260,23 +261,23 @@ public class BufferedFile {
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedName("t")
|
||||
@ObfuscatedSignature(
|
||||
signature = "([BIII)V",
|
||||
garbageValue = "-1530751884"
|
||||
garbageValue = "-516860317"
|
||||
)
|
||||
@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;
|
||||
if ((long)var3 + this.offset > this.length) {
|
||||
this.length = (long)var3 + this.offset;
|
||||
}
|
||||
|
||||
if (-1L != this.writeBufferOffset && (this.offset < this.writeBufferOffset || this.offset > (long)this.writeBufferLength + this.writeBufferOffset)) {
|
||||
this.flush();
|
||||
}
|
||||
|
||||
if (this.writeBufferOffset != -1L && this.offset + (long)var3 > this.writeBufferOffset + (long)this.writeBuffer.length) {
|
||||
if (-1L != this.writeBufferOffset && (long)var3 + this.offset > (long)this.writeBuffer.length + this.writeBufferOffset) {
|
||||
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;
|
||||
@@ -300,7 +301,7 @@ public class BufferedFile {
|
||||
|
||||
}
|
||||
} else {
|
||||
if (this.fileOffset != this.offset) {
|
||||
if (this.offset != this.fileOffset) {
|
||||
this.accessFile.seek(this.offset);
|
||||
this.fileOffset = this.offset;
|
||||
}
|
||||
@@ -313,14 +314,14 @@ public class BufferedFile {
|
||||
|
||||
long var9 = -1L;
|
||||
long var6 = -1L;
|
||||
if (this.offset >= this.readBufferOffset && this.offset < (long)this.readBufferLength + this.readBufferOffset) {
|
||||
if (this.offset >= this.readBufferOffset && this.offset < this.readBufferOffset + (long)this.readBufferLength) {
|
||||
var9 = this.offset;
|
||||
} else if (this.readBufferOffset >= this.offset && this.readBufferOffset < (long)var3 + this.offset) {
|
||||
var9 = this.readBufferOffset;
|
||||
}
|
||||
|
||||
if (this.offset + (long)var3 > this.readBufferOffset && this.offset + (long)var3 <= (long)this.readBufferLength + this.readBufferOffset) {
|
||||
var6 = (long)var3 + this.offset;
|
||||
if (this.offset + (long)var3 > this.readBufferOffset && (long)var3 + this.offset <= (long)this.readBufferLength + this.readBufferOffset) {
|
||||
var6 = this.offset + (long)var3;
|
||||
} else if (this.readBufferOffset + (long)this.readBufferLength > this.offset && (long)this.readBufferLength + this.readBufferOffset <= this.offset + (long)var3) {
|
||||
var6 = (long)this.readBufferLength + this.readBufferOffset;
|
||||
}
|
||||
@@ -338,36 +339,36 @@ public class BufferedFile {
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("i")
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(I)V",
|
||||
garbageValue = "813445771"
|
||||
garbageValue = "2123212638"
|
||||
)
|
||||
@Export("flush")
|
||||
void flush() throws IOException {
|
||||
if (this.writeBufferOffset != -1L) {
|
||||
if (-1L != this.writeBufferOffset) {
|
||||
if (this.writeBufferOffset != this.fileOffset) {
|
||||
this.accessFile.seek(this.writeBufferOffset);
|
||||
this.fileOffset = this.writeBufferOffset;
|
||||
}
|
||||
|
||||
this.accessFile.write(this.writeBuffer, 0, this.writeBufferLength);
|
||||
this.fileOffset += -299149629L * (long)(this.writeBufferLength * -1383888405);
|
||||
this.fileOffset += (long)(this.writeBufferLength * 1940047011) * -1286336757L;
|
||||
if (this.fileOffset > this.fileLength) {
|
||||
this.fileLength = this.fileOffset;
|
||||
}
|
||||
|
||||
long var1 = -1L;
|
||||
long var3 = -1L;
|
||||
if (this.writeBufferOffset >= this.readBufferOffset && this.writeBufferOffset < this.readBufferOffset + (long)this.readBufferLength) {
|
||||
if (this.writeBufferOffset >= this.readBufferOffset && this.writeBufferOffset < (long)this.readBufferLength + this.readBufferOffset) {
|
||||
var1 = 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 <= (long)this.readBufferLength + this.readBufferOffset) {
|
||||
var3 = this.writeBufferOffset + (long)this.writeBufferLength;
|
||||
} else if (this.readBufferOffset + (long)this.readBufferLength > this.writeBufferOffset && this.readBufferOffset + (long)this.readBufferLength <= this.writeBufferOffset + (long)this.writeBufferLength) {
|
||||
if (this.writeBufferOffset + (long)this.writeBufferLength > this.readBufferOffset && this.writeBufferOffset + (long)this.writeBufferLength <= (long)this.readBufferLength + this.readBufferOffset) {
|
||||
var3 = (long)this.writeBufferLength + this.writeBufferOffset;
|
||||
} else if (this.readBufferOffset + (long)this.readBufferLength > this.writeBufferOffset && this.readBufferOffset + (long)this.readBufferLength <= (long)this.writeBufferLength + this.writeBufferOffset) {
|
||||
var3 = (long)this.readBufferLength + this.readBufferOffset;
|
||||
}
|
||||
|
||||
@@ -381,28 +382,4 @@ public class BufferedFile {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedSignature(
|
||||
signature = "(III)I",
|
||||
garbageValue = "-1560259071"
|
||||
)
|
||||
static int method6528(int var0, int var1) {
|
||||
ItemContainer var2 = (ItemContainer)ItemContainer.itemContainers.get((long)var0);
|
||||
if (var2 == null) {
|
||||
return 0;
|
||||
}
|
||||
if (var1 == -1) {
|
||||
return 0;
|
||||
}
|
||||
int var3 = 0;
|
||||
|
||||
for (int var4 = 0; var4 < var2.quantities.length; ++var4) {
|
||||
if (var2.ids[var4] == var1) {
|
||||
var3 += var2.quantities[var4];
|
||||
}
|
||||
}
|
||||
|
||||
return var3;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user