Exemplo n.º 1
0
        public static BnSDatWriter Modify(string filename, bool is64)
        {
            FileStream   fs     = new FileStream(filename, FileMode.Open, FileAccess.ReadWrite, FileShare.Read);
            BnSDatWriter result = BnSDatWriter.Create(fs, false);

            using (BnSDatArchive archive = BnSDatArchive.Read(fs, true))
                using (IReader reader = archive.ExtractAllEntries())
                    while (reader.MoveToNextEntry())
                    {
                        reader.CopyEntryTo(result);
                    }
            return(result);
        }
Exemplo n.º 2
0
 public static BnSDatWriter Create(Stream stream, string temporaryFolder, bool leaveOpen) => BnSDatWriter.Create(stream, temporaryFolder, leaveOpen, false);
Exemplo n.º 3
0
 public static BnSDatWriter Create(Stream stream, bool leaveOpen, bool is64) => BnSDatWriter.Create(stream, null, leaveOpen, is64);
Exemplo n.º 4
0
 public static BnSDatWriter Create(Stream stream, string temporaryFolder) => BnSDatWriter.Create(stream, temporaryFolder, false);
Exemplo n.º 5
0
 public static BnSDatWriter Create(Stream stream, bool leaveOpen) => BnSDatWriter.Create(stream, leaveOpen, false);
Exemplo n.º 6
0
 public static BnSDatWriter Create(Stream stream) => BnSDatWriter.Create(stream, false);
Exemplo n.º 7
0
        public static BnSDatWriter Create(string filename, string temporaryFolder, bool is64)
        {
            FileStream fs = File.Create(filename);

            return(BnSDatWriter.Create(fs, temporaryFolder, false, is64));
        }
Exemplo n.º 8
0
 public static BnSDatWriter Create(string filename, bool is64) => BnSDatWriter.Create(filename, null, is64);
Exemplo n.º 9
0
 public static BnSDatWriter Create(string filename, string temporaryFolder) => BnSDatWriter.Create(filename, temporaryFolder, false);
Exemplo n.º 10
0
 public static BnSDatWriter Create(string filename) => BnSDatWriter.Create(filename, false);