Esempio n. 1
0
        static bool Decompress(ShockwaveFlash flash)
        {
            if (flash.CompressWith != CompressionStandard.None)
            {
                int compressedSizeMB   = ((flash.ToArray().Length / 1024) / 1024);
                int uncompressedSizeMB = (((int)flash.FileLength / 1024) / 1024);

                ClearWriteLine("Decompressing... | ({0}MB) -> ({1}MB)",
                               compressedSizeMB, uncompressedSizeMB);

                flash.Decompress();
            }
            return(!flash.IsCompressed);
        }
Esempio n. 2
0
        static bool Decompress(ShockwaveFlash flash)
        {
            if (flash.Compression != CompressionType.None)
            {
                Console.Clear();
                int compressedSizeMB   = ((flash.ToByteArray().Length / 1024) / 1024);
                int uncompressedSizeMB = (((int)flash.FileLength / 1024) / 1024);

                Console.Write($"Decompressing... | ({compressedSizeMB}MB)");
                flash.Decompress();
                WriteLine($" -> ({uncompressedSizeMB}MB)");
            }
            return(!flash.IsCompressed);
        }