1
0
mirror of synced 2024-12-01 02:27:22 +01:00
Switch-Toolbox/Switch_Toolbox_Library/Interfaces/ICompressionFormat.cs
KillzXGaming 42f6b670e0 Some fixes.
Fix zlib compression corrupting the file.
Fix sarc and msbt format descriptions.
Adjust when a file  in an IArchiveFile gets saved.
Porgress on MTA 0X50 compression type. not finished atm.
Start on ICompressionFormat interface. Will soon be the way compression formats are all handled.
2019-07-01 15:44:19 -04:00

22 lines
466 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace Switch_Toolbox.Library
{
public interface ICompressionFormat
{
string[] Description { get; set; }
string[] Extension { get; set; }
bool Identify(Stream stream);
bool CanCompress { get; }
Stream Decompress(Stream stream);
Stream Compress(Stream stream);
}
}