Esempio n. 1
0
 public static int Compact(VoidPtr srcAddr, int srcLen, Stream outStream, ResourceNode r, bool extendedFormat)
 {
     using (LZ77 lz = new LZ77())
     {
         using (ProgressWindow prog = new ProgressWindow(r.RootNode._mainForm,
                                                         (extendedFormat ? "Extended " : "") + "LZ77",
                                                         $"Compressing {r.Name}, please wait...", false))
         {
             return(lz.Compress(srcAddr, srcLen, outStream, prog, extendedFormat));
         }
     }
 }
Esempio n. 2
0
 public static int Compact(VoidPtr srcAddr, int srcLen, Stream outStream, ResourceNode r, bool extendedFormat)
 {
     using (LZ77 lz = new LZ77())
     using (ProgressWindow prog = new ProgressWindow(r.RootNode._mainForm, (extendedFormat ? "Extended " : "") + "LZ77", String.Format("Compressing {0}, please wait...", r.Name), false))
         return lz.Compress(srcAddr, srcLen, outStream, prog, extendedFormat);
 }
Esempio n. 3
0
 public static int Compact(VoidPtr srcAddr, int srcLen, Stream outStream, string name)
 {
     using (LZ77 lz = new LZ77())
         using (ProgressWindow prog = new ProgressWindow(null, "LZ77", String.Format("Compressing {0}, please wait...", name), false))
             return(lz.Compress(srcAddr, srcLen, outStream, prog));
 }