2021-01-29 17:18:28 -08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.IO;
|
2023-04-21 15:04:31 -04:00
|
|
|
|
using Compress.Support.Utils;
|
2019-12-04 15:42:30 -08:00
|
|
|
|
|
|
|
|
|
|
namespace Compress
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface ICompress
|
|
|
|
|
|
{
|
|
|
|
|
|
int LocalFilesCount();
|
|
|
|
|
|
|
2023-04-21 15:04:31 -04:00
|
|
|
|
LocalFile GetLocalFile(int i);
|
|
|
|
|
|
|
2019-12-04 15:42:30 -08:00
|
|
|
|
ZipOpenType ZipOpen { get; }
|
|
|
|
|
|
|
2020-04-03 13:19:21 -07:00
|
|
|
|
ZipReturn ZipFileOpen(string newFilename, long timestamp = -1, bool readHeaders = true);
|
2019-12-04 15:42:30 -08:00
|
|
|
|
|
|
|
|
|
|
ZipReturn ZipFileOpen(Stream inStream);
|
|
|
|
|
|
void ZipFileClose();
|
|
|
|
|
|
|
|
|
|
|
|
ZipReturn ZipFileOpenReadStream(int index, out Stream stream, out ulong streamSize);
|
2021-01-29 17:18:28 -08:00
|
|
|
|
ZipReturn ZipFileOpenWriteStream(bool raw, bool trrntzip, string filename, ulong uncompressedSize, ushort compressionMethod, out Stream stream, TimeStamps dateTime = null);
|
2019-12-04 15:42:30 -08:00
|
|
|
|
ZipReturn ZipFileCloseReadStream();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ZipStatus ZipStatus { get; }
|
|
|
|
|
|
|
|
|
|
|
|
string ZipFilename { get; }
|
|
|
|
|
|
long TimeStamp { get; }
|
|
|
|
|
|
|
2020-04-03 13:19:21 -07:00
|
|
|
|
void ZipFileAddZeroLengthFile();
|
2019-12-04 15:42:30 -08:00
|
|
|
|
|
|
|
|
|
|
ZipReturn ZipFileCreate(string newFilename);
|
|
|
|
|
|
ZipReturn ZipFileCloseWriteStream(byte[] crc32);
|
|
|
|
|
|
void ZipFileCloseFailed();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2021-01-29 17:18:28 -08:00
|
|
|
|
}
|