2019-12-04 15:42:30 -08:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Compress
|
|
|
|
|
|
{
|
|
|
|
|
|
public enum ZipReturn
|
|
|
|
|
|
{
|
|
|
|
|
|
ZipGood,
|
|
|
|
|
|
ZipFileLocked,
|
|
|
|
|
|
ZipFileCountError,
|
|
|
|
|
|
ZipSignatureError,
|
|
|
|
|
|
ZipExtraDataOnEndOfZip,
|
|
|
|
|
|
ZipUnsupportedCompression,
|
|
|
|
|
|
ZipLocalFileHeaderError,
|
|
|
|
|
|
ZipCentralDirError,
|
|
|
|
|
|
ZipEndOfCentralDirectoryError,
|
|
|
|
|
|
Zip64EndOfCentralDirError,
|
|
|
|
|
|
Zip64EndOfCentralDirectoryLocatorError,
|
|
|
|
|
|
ZipReadingFromOutputFile,
|
|
|
|
|
|
ZipWritingToInputFile,
|
|
|
|
|
|
ZipErrorGettingDataStream,
|
|
|
|
|
|
ZipCRCDecodeError,
|
|
|
|
|
|
ZipDecodeError,
|
|
|
|
|
|
ZipFileNameToLong,
|
|
|
|
|
|
ZipFileAlreadyOpen,
|
|
|
|
|
|
ZipCannotFastOpen,
|
|
|
|
|
|
ZipErrorOpeningFile,
|
|
|
|
|
|
ZipErrorFileNotFound,
|
|
|
|
|
|
ZipErrorReadingFile,
|
|
|
|
|
|
ZipErrorTimeStamp,
|
|
|
|
|
|
ZipErrorRollBackFile,
|
|
|
|
|
|
ZipTryingToAccessADirectory,
|
2020-04-03 13:19:21 -07:00
|
|
|
|
ZipErrorWritingToOutputStream,
|
2019-12-04 15:42:30 -08:00
|
|
|
|
ZipUntested
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public enum ZipOpenType
|
|
|
|
|
|
{
|
|
|
|
|
|
Closed,
|
|
|
|
|
|
OpenRead,
|
|
|
|
|
|
OpenWrite,
|
|
|
|
|
|
OpenFakeWrite
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Flags]
|
|
|
|
|
|
public enum ZipStatus
|
|
|
|
|
|
{
|
|
|
|
|
|
None = 0x0,
|
|
|
|
|
|
TrrntZip = 0x1,
|
|
|
|
|
|
ExtraData = 0x2,
|
|
|
|
|
|
Trrnt7Zip = 0x4
|
|
|
|
|
|
}
|
2021-01-29 17:18:28 -08:00
|
|
|
|
}
|