Extract out FileTypes namespace

This commit is contained in:
Matt Nadareski
2020-12-08 14:53:49 -08:00
parent 0512e393c8
commit 82e3a3939b
134 changed files with 500 additions and 641 deletions

View File

@@ -0,0 +1,40 @@
using System.IO;
namespace Compress
{
public interface ICompress
{
int LocalFilesCount();
string Filename(int i);
ulong? LocalHeader(int i);
ulong UncompressedSize(int i);
byte[] CRC32(int i);
bool IsDirectory(int i);
ZipOpenType ZipOpen { get; }
ZipReturn ZipFileOpen(string newFilename, long timestamp = -1, bool readHeaders = true);
ZipReturn ZipFileOpen(Stream inStream);
void ZipFileClose();
ZipReturn ZipFileOpenReadStream(int index, out Stream stream, out ulong streamSize);
ZipReturn ZipFileOpenWriteStream(bool raw, bool trrntzip, string filename, ulong uncompressedSize, ushort compressionMethod, uint? datetime, out Stream stream);
ZipReturn ZipFileCloseReadStream();
ZipStatus ZipStatus { get; }
string ZipFilename { get; }
long TimeStamp { get; }
void ZipFileAddZeroLengthFile();
ZipReturn ZipFileCreate(string newFilename);
ZipReturn ZipFileCloseWriteStream(byte[] crc32);
void ZipFileCloseFailed();
}
}