some more ByteArraRange objects instead of reading them to new byte array, method to read netstings (length + characters) in SwfInputStream

This commit is contained in:
honfika@gmail.com
2015-07-27 11:21:26 +02:00
parent c9f1f45ed5
commit c5d960f10b
18 changed files with 124 additions and 85 deletions

View File

@@ -1028,7 +1028,7 @@ public final class SWF implements SWFContainerItem, Timelined {
SWFInputStream sis = new SWFInputStream(this, uncompressedData);
dumpInfo = new DumpInfoSwfNode(this, "rootswf", "", null, 0, 0);
sis.dumpInfo = dumpInfo;
sis.readBytesEx(3, "signature"); // skip siganture
sis.skipBytesEx(3, "signature"); // skip siganture
version = sis.readUI8("version");
fileSize = sis.readUI32("fileSize");
dumpInfo.lengthBytes = fileSize;