project: Rev 182

This commit is contained in:
Owain van Brakel
2019-08-29 16:04:20 +02:00
parent 0c1dd644d8
commit 6485eb9bed
349 changed files with 51857 additions and 50740 deletions

View File

@@ -6,40 +6,40 @@ import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("kp")
@ObfuscatedName("ki")
@Implements("BufferedSink")
public class BufferedSink implements Runnable {
@ObfuscatedName("q")
@ObfuscatedName("s")
@Export("thread")
Thread thread;
@ObfuscatedName("w")
@ObfuscatedName("j")
@Export("outputStream")
OutputStream outputStream;
@ObfuscatedName("e")
@ObfuscatedName("i")
@ObfuscatedGetter(
intValue = -273498913
intValue = -2122061045
)
@Export("capacity")
int capacity;
@ObfuscatedName("p")
@ObfuscatedName("k")
@Export("buffer")
byte[] buffer;
@ObfuscatedName("k")
@ObfuscatedName("u")
@ObfuscatedGetter(
intValue = -173399327
intValue = -786239105
)
@Export("position")
int position;
@ObfuscatedName("l")
@ObfuscatedName("n")
@ObfuscatedGetter(
intValue = -1895147359
intValue = -225046667
)
@Export("limit")
int limit;
@ObfuscatedName("b")
@ObfuscatedName("t")
@Export("exception")
IOException exception;
@ObfuscatedName("i")
@ObfuscatedName("q")
@Export("closed")
boolean closed;
@@ -54,10 +54,10 @@ public class BufferedSink implements Runnable {
this.thread.start();
}
@ObfuscatedName("q")
@ObfuscatedName("s")
@ObfuscatedSignature(
signature = "(B)Z",
garbageValue = "-14"
garbageValue = "-52"
)
@Export("isClosed")
boolean isClosed() {
@@ -74,14 +74,15 @@ public class BufferedSink implements Runnable {
}
return true;
} else {
return false;
}
return false;
}
@ObfuscatedName("w")
@ObfuscatedName("j")
@ObfuscatedSignature(
signature = "([BIIB)V",
garbageValue = "37"
garbageValue = "22"
)
@Export("write")
void write(byte[] var1, int var2, int var3) throws IOException {
@@ -89,37 +90,39 @@ public class BufferedSink implements Runnable {
synchronized(this) {
if (this.exception != null) {
throw new IOException(this.exception.toString());
}
int var5;
if (this.position <= this.limit) {
var5 = this.capacity - this.limit + this.position - 1;
} else {
var5 = this.position - this.limit - 1;
}
int var5;
if (this.position <= this.limit) {
var5 = this.capacity - this.limit + this.position - 1;
} else {
var5 = this.position - this.limit - 1;
}
if (var5 < var3) {
throw new IOException("");
}
if (var3 + this.limit <= this.capacity) {
System.arraycopy(var1, var2, this.buffer, this.limit, var3);
} else {
int var6 = this.capacity - this.limit;
System.arraycopy(var1, var2, this.buffer, this.limit, var6);
System.arraycopy(var1, var6 + var2, this.buffer, 0, var3 - var6);
}
if (var5 < var3) {
throw new IOException("");
} else {
if (var3 + this.limit <= this.capacity) {
System.arraycopy(var1, var2, this.buffer, this.limit, var3);
} else {
int var6 = this.capacity - this.limit;
System.arraycopy(var1, var2, this.buffer, this.limit, var6);
System.arraycopy(var1, var6 + var2, this.buffer, 0, var3 - var6);
}
this.limit = (var3 + this.limit) % this.capacity;
this.notifyAll();
this.limit = (var3 + this.limit) % this.capacity;
this.notifyAll();
}
}
}
} else {
throw new IOException();
}
}
@ObfuscatedName("e")
@ObfuscatedName("i")
@ObfuscatedSignature(
signature = "(I)V",
garbageValue = "1881137071"
signature = "(B)V",
garbageValue = "4"
)
@Export("close")
void close() {