mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-30 22:54:52 +00:00
faster imageToShape
This commit is contained in:
@@ -159,7 +159,7 @@ public class FileHashMap<K, V> extends AbstractMap<K, V> implements Freed {
|
||||
long ofs = offsets.get(key);
|
||||
int len = lengths.get(key);
|
||||
file.seek(ofs);
|
||||
byte data[] = new byte[len];
|
||||
byte[] data = new byte[len];
|
||||
file.readFully(data);
|
||||
ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(data));
|
||||
try {
|
||||
@@ -187,7 +187,7 @@ public class FileHashMap<K, V> extends AbstractMap<K, V> implements Freed {
|
||||
oos = new ObjectOutputStream(baos);
|
||||
oos.writeObject(value);
|
||||
oos.flush();
|
||||
byte data[] = baos.toByteArray();
|
||||
byte[] data = baos.toByteArray();
|
||||
if (offsets.containsKey(key)) {
|
||||
long origOffset = offsets.get(key);
|
||||
int origLen = lengths.get(key);
|
||||
|
||||
Reference in New Issue
Block a user