Revert "project: 184 (#1670)"

This reverts commit 42acd14658.
This commit is contained in:
Kyle
2019-09-28 17:11:53 +01:00
committed by GitHub
parent 42acd14658
commit b5c6468d19
341 changed files with 90740 additions and 90582 deletions

View File

@@ -1,50 +1,50 @@
import java.util.zip.Inflater;
import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("lr")
@Implements("GZipDecompressor")
public class GZipDecompressor {
@ObfuscatedName("z")
@Export("inflater")
Inflater inflater;
public GZipDecompressor() {
this(-1, 1000000, 1000000);
}
@ObfuscatedSignature(
signature = "(III)V",
garbageValue = "1000000"
)
GZipDecompressor(int var1, int var2, int var3) {
}
@ObfuscatedName("z")
@ObfuscatedSignature(
signature = "(Lkl;[BI)V",
garbageValue = "-1227959018"
)
@Export("decompress")
public void decompress(Buffer var1, byte[] var2) {
if (var1.array[var1.offset] == 31 && var1.array[var1.offset + 1] == -117) {
if (this.inflater == null) {
this.inflater = new Inflater(true);
}
try {
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();
} else {
throw new RuntimeException("");
}
}
}
import java.util.zip.Inflater;
import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("lr")
@Implements("GZipDecompressor")
public class GZipDecompressor {
@ObfuscatedName("z")
@Export("inflater")
Inflater inflater;
public GZipDecompressor() {
this(-1, 1000000, 1000000);
}
@ObfuscatedSignature(
signature = "(III)V",
garbageValue = "1000000"
)
GZipDecompressor(int var1, int var2, int var3) {
}
@ObfuscatedName("z")
@ObfuscatedSignature(
signature = "(Lkl;[BI)V",
garbageValue = "-1227959018"
)
@Export("decompress")
public void decompress(Buffer var1, byte[] var2) {
if (var1.array[var1.offset] == 31 && var1.array[var1.offset + 1] == -117) {
if (this.inflater == null) {
this.inflater = new Inflater(true);
}
try {
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();
} else {
throw new RuntimeException("");
}
}
}