Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
        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);
        }