static byte[] Compress(ShockwaveFlash flash) { WriteLine("Compressing... | ({0}MB) | This may take a while, no more than a minute, hopefully.", (((int)flash.FileLength / 1024) / 1024)); return(flash.Compress()); }
static byte[] Compress(ShockwaveFlash flash) { int uncompressedSizeMB = (((int)flash.FileLength / 1024) / 1024); Console.Write($"Compressing... | ({uncompressedSizeMB}MB)"); byte[] compressedData = flash.Compress(); int compressedSizeMB = ((compressedData.Length / 1024) / 1024); WriteLine($" -> ({compressedSizeMB}MB)"); return(compressedData); }