project: rev 195
This commit is contained in:
@@ -5,39 +5,39 @@ import net.runelite.mapping.Implements;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
|
||||
@ObfuscatedName("lf")
|
||||
@ObfuscatedName("lo")
|
||||
@Implements("BufferedNetSocket")
|
||||
public class BufferedNetSocket extends AbstractSocket {
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedName("f")
|
||||
@Export("socket")
|
||||
Socket socket;
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lll;"
|
||||
descriptor = "Llm;"
|
||||
)
|
||||
@Export("source")
|
||||
BufferedSource source;
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Llt;"
|
||||
descriptor = "Lld;"
|
||||
)
|
||||
@Export("sink")
|
||||
BufferedSink sink;
|
||||
|
||||
BufferedNetSocket(Socket var1, int var2, int var3) throws IOException {
|
||||
this.socket = var1; // L: 12
|
||||
this.socket.setSoTimeout(30000); // L: 13
|
||||
this.socket.setTcpNoDelay(true); // L: 14
|
||||
this.socket.setReceiveBufferSize(65536); // L: 15
|
||||
this.socket = var1;
|
||||
this.socket.setSoTimeout(30000);
|
||||
this.socket.setTcpNoDelay(true);
|
||||
this.socket.setReceiveBufferSize(65536);
|
||||
this.socket.setSendBufferSize(65536); // L: 16
|
||||
this.source = new BufferedSource(this.socket.getInputStream(), var2); // L: 17
|
||||
this.source = new BufferedSource(this.socket.getInputStream(), var2);
|
||||
this.sink = new BufferedSink(this.socket.getOutputStream(), var3); // L: 18
|
||||
} // L: 19
|
||||
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)V",
|
||||
garbageValue = "136255387"
|
||||
garbageValue = "-1705512918"
|
||||
)
|
||||
@Export("close")
|
||||
public void close() {
|
||||
@@ -51,50 +51,50 @@ public class BufferedNetSocket extends AbstractSocket {
|
||||
this.source.close(); // L: 47
|
||||
} // L: 48
|
||||
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(B)I",
|
||||
garbageValue = "-29"
|
||||
garbageValue = "-75"
|
||||
)
|
||||
@Export("readUnsignedByte")
|
||||
public int readUnsignedByte() throws IOException {
|
||||
return this.source.readUnsignedByte(); // L: 30
|
||||
}
|
||||
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(B)I",
|
||||
garbageValue = "1"
|
||||
garbageValue = "-65"
|
||||
)
|
||||
@Export("available")
|
||||
public int available() throws IOException {
|
||||
return this.source.available(); // L: 26
|
||||
}
|
||||
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(II)Z",
|
||||
garbageValue = "1621767276"
|
||||
garbageValue = "1604537239"
|
||||
)
|
||||
@Export("isAvailable")
|
||||
public boolean isAvailable(int var1) throws IOException {
|
||||
return this.source.isAvailable(var1); // L: 22
|
||||
}
|
||||
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "([BIIB)I",
|
||||
garbageValue = "-127"
|
||||
garbageValue = "121"
|
||||
)
|
||||
@Export("read")
|
||||
public int read(byte[] var1, int var2, int var3) throws IOException {
|
||||
return this.source.read(var1, var2, var3); // L: 34
|
||||
}
|
||||
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "([BIII)V",
|
||||
garbageValue = "1032488862"
|
||||
garbageValue = "199608149"
|
||||
)
|
||||
@Export("write")
|
||||
public void write(byte[] var1, int var2, int var3) throws IOException {
|
||||
@@ -104,4 +104,27 @@ public class BufferedNetSocket extends AbstractSocket {
|
||||
protected void finalize() {
|
||||
this.close(); // L: 51
|
||||
} // L: 52
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Ljava/lang/CharSequence;I)I",
|
||||
garbageValue = "-417848608"
|
||||
)
|
||||
public static int method5868(CharSequence var0) {
|
||||
int var1 = var0.length(); // L: 9
|
||||
int var2 = 0; // L: 10
|
||||
|
||||
for (int var3 = 0; var3 < var1; ++var3) { // L: 11
|
||||
char var4 = var0.charAt(var3); // L: 12
|
||||
if (var4 <= 127) { // L: 13
|
||||
++var2;
|
||||
} else if (var4 <= 2047) { // L: 14
|
||||
var2 += 2;
|
||||
} else {
|
||||
var2 += 3; // L: 15
|
||||
}
|
||||
}
|
||||
|
||||
return var2; // L: 17
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user