client: rev 198 (#3014)
* client: rev 198 * client: checkstyle Co-authored-by: therealnull <therealnull@gmail.com>
This commit is contained in:
@@ -1,57 +1,50 @@
|
||||
import java.util.zip.Inflater;
|
||||
import net.runelite.mapping.Export;
|
||||
import net.runelite.mapping.Implements;
|
||||
import net.runelite.mapping.ObfuscatedGetter;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
|
||||
@ObfuscatedName("or")
|
||||
@ObfuscatedName("oj")
|
||||
@Implements("GZipDecompressor")
|
||||
public class GZipDecompressor {
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 2117115219
|
||||
)
|
||||
@Export("clientType")
|
||||
public static int clientType;
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("s")
|
||||
@Export("inflater")
|
||||
Inflater inflater;
|
||||
|
||||
public GZipDecompressor() {
|
||||
this(-1, 1000000, 1000000);
|
||||
}
|
||||
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(III)V",
|
||||
garbageValue = "1000000"
|
||||
)
|
||||
GZipDecompressor(int var1, int var2, int var3) {
|
||||
} // L: 13
|
||||
}
|
||||
|
||||
public GZipDecompressor() {
|
||||
this(-1, 1000000, 1000000); // L: 10
|
||||
} // L: 11
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Lnt;[BI)V",
|
||||
garbageValue = "1826658043"
|
||||
descriptor = "(Lnv;[BI)V",
|
||||
garbageValue = "2001145466"
|
||||
)
|
||||
@Export("decompress")
|
||||
public void decompress(Buffer var1, byte[] var2) {
|
||||
if (var1.array[var1.offset] == 31 && var1.array[var1.offset + 1] == -117) { // L: 16
|
||||
if (var1.array[var1.offset] == 31 && var1.array[var1.offset + 1] == -117) {
|
||||
if (this.inflater == null) {
|
||||
this.inflater = new Inflater(true); // L: 17
|
||||
this.inflater = new Inflater(true);
|
||||
}
|
||||
|
||||
try {
|
||||
this.inflater.setInput(var1.array, var1.offset + 10, var1.array.length - (var1.offset + 8 + 10)); // L: 19
|
||||
this.inflater.inflate(var2); // L: 20
|
||||
} catch (Exception var4) { // L: 22
|
||||
this.inflater.reset(); // L: 23
|
||||
throw new RuntimeException(""); // L: 24
|
||||
this.inflater.setInput(var1.array, var1.offset + 10, var1.array.length - (var1.offset + 8 + 10));
|
||||
this.inflater.inflate(var2);
|
||||
} catch (Exception var4) {
|
||||
this.inflater.reset();
|
||||
throw new RuntimeException("");
|
||||
}
|
||||
|
||||
this.inflater.reset(); // L: 26
|
||||
this.inflater.reset();
|
||||
} else {
|
||||
throw new RuntimeException("");
|
||||
}
|
||||
} // L: 27
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user