AS2 reading performance improvements

This commit is contained in:
honfika
2014-08-15 00:32:56 +02:00
parent 2492cd9d34
commit d6c14b8e72
11 changed files with 201 additions and 195 deletions
@@ -123,6 +123,13 @@ public class SWFOutputStream extends OutputStream {
pos++;
}
@Override
public void write(byte[] b) throws IOException {
alignByte();
os.write(b);
pos += b.length;
}
private void alignByte() throws IOException {
if (bitPos > 0) {
bitPos = 0;