Exemple #1
0
        private ArchiveFileInfo CreateAfi(Stream file, string name, IrarcFileEntry entry)
        {
            if (entry.IsCompressed)
            {
                file.Position = 0xC;
                var decompressedSize = PeekInt32(file);

                file = new SubStream(file, 0x18, file.Length - 0x18);

                return(new IrarcArchiveFileInfo(file, name, entry, Kompression.Implementations.Compressions.IrLz, decompressedSize)
                {
                    PluginIds = new[] { Guid.Parse("e38a0292-5e7d-457f-8795-8e0a1c44900f") }
                });
            }

            return(new IrarcArchiveFileInfo(file, name, entry)
            {
                PluginIds = new[] { Guid.Parse("e38a0292-5e7d-457f-8795-8e0a1c44900f") }
            });
        }
Exemple #2
0
 public IrarcArchiveFileInfo(Stream fileData, string filePath, IrarcFileEntry entry, IKompressionConfiguration configuration, long decompressedSize) :
     base(fileData, filePath, configuration, decompressedSize)
 {
     Entry = entry;
 }
Exemple #3
0
 public IrarcArchiveFileInfo(Stream fileData, string filePath, IrarcFileEntry entry) : base(fileData, filePath)
 {
     Entry = entry;
 }