Esempio n. 1
0
        public WadEntryBuilder(WadEntry entry)
        {
            WithPathXXHash(entry.XXHash);

            switch (entry.Type)
            {
            case WadEntryType.Uncompressed: WithUncompressedDataStream(entry.GetDataHandle().GetDecompressedStream()); break;

            case WadEntryType.GZipCompressed: WithGZipDataStream(entry.GetDataHandle().GetCompressedStream(), entry.CompressedSize, entry.UncompressedSize); break;

            case WadEntryType.ZStandardCompressed: WithZstdDataStream(entry.GetDataHandle().GetCompressedStream(), entry.CompressedSize, entry.UncompressedSize); break;

            case WadEntryType.FileRedirection: WithFileRedirection(entry.FileRedirection); break;
            }
        }
Esempio n. 2
0
 internal WadEntryDataHandle(WadEntry entry)
 {
     this._entry = entry;
 }