more compact swf xml format (do not create xml nodes for each byte in byte arrays)

This commit is contained in:
2015-03-20 16:14:30 +01:00
parent d5fb45fd54
commit c397e38f61
7 changed files with 45 additions and 20 deletions
@@ -109,7 +109,8 @@ public class ABC {
/* Map from multiname index of namespace value to namespace name**/
private Map<String, String> namespaceMap;
public ABC(SWF swf) {
public ABC(ABCContainerTag tag) {
this.parentTag = tag;
this.deobfuscation = null;
constants.constant_double.add(null);
constants.constant_int.add(null);
@@ -2347,7 +2347,7 @@ public class ActionScriptParser {
System.err.println("WARNING: AS3 compiler is not finished yet. This is only used for debuggging!");
try {
initPlayer();
ABC abc = new ABC(swf);
ABC abc = new ABC(null);
ActionScriptParser parser = new ActionScriptParser(abc, playerABCs);
parser.addScript(new String(Helper.readFile(src), "UTF-8"), true, src, classPos);
try (FileOutputStream fos = new FileOutputStream(new File(dst))) {
@@ -26,6 +26,7 @@ import com.jpexs.decompiler.flash.exporters.modes.ScriptExportMode;
import com.jpexs.decompiler.flash.helpers.GraphTextWriter;
import com.jpexs.decompiler.flash.helpers.NulWriter;
import com.jpexs.decompiler.flash.helpers.hilight.HighlightSpecialType;
import com.jpexs.decompiler.flash.types.annotations.Internal;
import com.jpexs.decompiler.graph.GraphTargetItem;
import com.jpexs.decompiler.graph.model.LocalData;
import com.jpexs.helpers.Helper;
@@ -42,6 +43,7 @@ public class TraitSlotConst extends Trait implements TraitWithSlot {
public int value_kind;
@Internal
public GraphTargetItem assignedValue;
@Override