mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-02 05:24:50 +00:00
faster loading of compressed files
This commit is contained in:
@@ -539,7 +539,8 @@ public final class SWF implements TreeItem, Timelined {
|
||||
gfx = true;
|
||||
}
|
||||
if (hdr[0] == 'C') {
|
||||
sis = new SWFInputStream(new InflaterInputStream(is), version, 8);
|
||||
byte[] uncompressedData = Helper.readStream(new InflaterInputStream(is));
|
||||
sis = new SWFInputStream(new ByteArrayInputStream(uncompressedData), version, 8);
|
||||
compressed = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -641,11 +641,11 @@ public class SWFInputStream extends InputStream {
|
||||
* @return Array of read bytes
|
||||
* @throws IOException
|
||||
*/
|
||||
public byte[] readBytes(long count) throws IOException {
|
||||
public byte[] readBytes(int count) throws IOException {
|
||||
if (count <= 0) {
|
||||
return new byte[0];
|
||||
}
|
||||
byte[] ret = new byte[(int) count];
|
||||
byte[] ret = new byte[count];
|
||||
try {
|
||||
for (int i = 0; i < count; i++) {
|
||||
ret[i] = (byte) readEx();
|
||||
|
||||
@@ -97,7 +97,7 @@ public class Configuration {
|
||||
public static final ConfigurationItem<Boolean> useRibbonInterface = null;
|
||||
@ConfigurationDefaultBoolean(false)
|
||||
public static final ConfigurationItem<Boolean> openFolderAfterFlaExport = null;
|
||||
@ConfigurationDefaultBoolean(true)
|
||||
@ConfigurationDefaultBoolean(false)
|
||||
public static final ConfigurationItem<Boolean> useDetailedLogging = null;
|
||||
|
||||
@ConfigurationDefaultInt(65536)
|
||||
|
||||
Reference in New Issue
Block a user