コード例 #1
0
ファイル: BlnSub.cs プロジェクト: obluda3/Kuriimu2
        private ArchiveFileInfo CreateAfi(Stream stream, int index, BlnSubEntry entry)
        {
            // Every file not compressed with the headered Spike Chunsoft compression, is compressed headerless
            var compressionMagic = PeekInt32LittleEndian(stream);

            if (compressionMagic != 0xa755aafc)
            {
                return(new BlnSubArchiveFileInfo(stream, CreateFileName(index, stream, false), entry, Kompression.Implementations.Compressions.SpikeChunsoftHeaderless, SpikeChunsoftHeaderlessDecoder.CalculateDecompressedSize(stream)));
            }

            stream.Position = 0;
            return(new BlnSubArchiveFileInfo(stream, CreateFileName(index, stream, true), entry, Kompression.Implementations.Compressions.SpikeChunsoft, PeekDecompressedSize(stream)));
        }
コード例 #2
0
 public BlnSubArchiveFileInfo(Stream fileData, string filePath, BlnSubEntry entry) :
     base(fileData, filePath)
 {
     Entry        = entry;
     OriginalSize = fileData.Length;
 }
コード例 #3
0
 public BlnSubArchiveFileInfo(Stream fileData, string filePath, BlnSubEntry entry, IKompressionConfiguration configuration, long decompressedSize) :
     base(fileData, filePath, configuration, decompressedSize)
 {
     Entry        = entry;
     OriginalSize = fileData.Length;
 }
コード例 #4
0
ファイル: BlnSubSupport.cs プロジェクト: caleb-mabry/Kuriimu2
 public BlnSubArchiveFileInfo(Stream fileData, string filePath, BlnSubEntry entry) :
     base(fileData, filePath)
 {
     Entry = entry;
 }