16 [
Guid(
"ebc25cf6-9120-4283-b972-0e5520d00004")]
749 [
Obsolete(
"Beginning with v1.9.1.6 of DotNetZip, this property is obsolete. It will be removed in a future version of the library. Your applications should use AlternateEncoding and AlternateEncodingUsage instead.")]
786 [
Obsolete(
"This property is obsolete since v1.9.1.6. Use AlternateEncoding and AlternateEncodingUsage instead.",
true)]
832 while (filename ==
null)
835 bool flag =
string.IsNullOrEmpty(filename);
922 return "The filename must be non-null and non-empty.";
952 return string.Format(
"ZipEntry::{0}", fileNameInArchive);
1039 if (lengthOfHeader == 0)
1108 while (container.
_zf ==
null);
1173 bool flag =
zf.OnSingleEntryExtract(
this, path,
true);
1225 if (container ==
null)
1241 if (password !=
null && password ==
null)
1249 if (
zf2._StatusMessageTextWriter !=
null)
1257 if (!
zf3._inExtractAll)
1269 if (
this ==
null || num3 == 0
L)
1480 if (unsupportedAlgorithmId != 0
U)
1517 while (password ==
null);
1533 if (fileName !=
null)
1539 bool flag =
text.StartsWith(
"/");
1540 string text2 =
text.Substring(1);
1599 if (-1073741824 != 0)
1828 char c3 = text[(int)
num3];
1836 char c5 = text[(int)
num8];
1902 if (setCompressionCallback !=
null)
2047 if (compressor !=
null)
2055 int crc = output.
Crc;
2184 if (password !=
null)
2213 if (lengthOfHeader == 0)
2243 while (container ==
null)
2278 if (totalEntrySize == 0
L)
2287 [Conditional(
"Trace")]
2557 int num =
int.Parse(group.
Value);
2620 byte[]
array = this.buffer;
2634 public byte[] buffer;
2690 public byte[] buffer;
class f__AnonymousType0<< Count > j__TPar
static uint GetAttributes(string lpFileName)
static bool SetAttributes(string lpFileName, uint dwFileAttributes)
static int SetTimes(string filename, DateTime ctime, DateTime atime, DateTime mtime)
static int SetLastWriteTime(string filename, DateTime mtime)
static int ReadEntrySignature(Stream s)
static DateTime AdjustTime_Reverse(DateTime time)
static int ReadInt(Stream s)
static DateTime PackedToDateTime(int packedDateTime)
static string NormalizePathForUseInZipFile(string pathName)
Zip64Option UseZip64WhenSaving
static ZipCrypto ForWrite(string password)
static ZipCrypto ForRead(string password, ZipEntry e)
static string AppendCopyToFileName(string f)
IAsyncResult BeginInvoke(AsyncCallback callback, object @object)
T EndInvoke(IAsyncResult result)
Func(object @object, IntPtr method)
void _CheckRead(int nbytes)
void CopyThroughWithNoChange(Stream outstream)
bool InputStreamWasJitProvided
int ProcessExtraField(Stream s, short extraFieldLength)
ZipErrorAction< ZipErrorAction > k__BackingField
long _RelativeOffsetOfLocalHeader
static void ReallyDelete(string fileName)
static void HandlePK00Prefix(Stream s)
static ZipEntry CreateFromFile(string filename, string nameInArchive)
static bool IsNotValidSig(int signature)
static ZipEntry CreateForWriter(string entryName, WriteDelegate d)
int ProcessExtraFieldPkwareStrongEncryption(byte[] Buffer, int j)
Encoding< AlternateEncoding > k__BackingField
bool AttributesIndicateDirectory
SetCompressionCallback< SetCompression > k__BackingField
void InternalExtract(string baseDir, Stream outstream, string password)
void ExtractWithPassword(string baseDirectory, string password)
int CheckExtractExistingFile(string baseDir, string targetFileName)
static ZipEntry ReadEntry(ZipContainer zc, bool first)
void VerifyCrcAfterExtract(int actualCrc32)
byte[] _WeakEncryptionHeader
static ZipEntry CreateForStream(string entryName, Stream s)
EncryptionAlgorithm _Encryption_FromZipFile
ZipCrypto _zipCrypto_forExtract
void ExtractWithPassword(string baseDirectory, ExtractExistingFileAction extractExistingFile, string password)
CompressionLevel _CompressionLevel
void CopyThroughOneEntry(Stream outStream)
Stream MaybeApplyCompression(Stream s, long streamLength)
void SetEntryTimes(DateTime created, DateTime accessed, DateTime modified)
static ZipEntry CreateForZipOutputStream(string nameInArchive)
string UnsupportedCompressionMethod
EncryptionAlgorithm _Encryption
Stream GetExtractDecryptor(Stream input)
uint _UnsupportedAlgorithmId
static int ReadWeakEncryptionHeader(Stream s, byte[] buffer)
string NormalizeFileName()
void OnWriteBlock(long bytesXferred, long totalBytesToXfer)
void ValidateCompression()
ExtractExistingFileAction< ExtractExistingFile > k__BackingField
Stream GetExtractDecompressor(Stream input2)
ExtractExistingFileAction ExtractExistingFile
static DateTime _unixEpoch
void WriteSecurityMetadata(Stream outstream)
ZipOption AlternateEncodingUsage
int ProcessExtraFieldInfoZipTimes(byte[] buffer, int j, short dataSize, long posn)
byte[] GetEncodedFileNameBytes()
void TraceWriteLine(string format, params object[] varParams)
void CopyMetaData(ZipEntry source)
EncryptionAlgorithm Encryption
void OnBeforeExtract(string path)
SetCompressionCallback SetCompression
void _SetTimes(string fileOrDirectory, bool isFile)
ZipOption< AlternateEncodingUsage > k__BackingField
static ZipEntry CreateForJitStreamProvider(string nameInArchive, OpenDelegate opener, CloseDelegate closer)
void ExtractWithPassword(Stream stream, string password)
Encoding ProvisionalAlternateEncoding
static ZipEntry Create(string nameInArchive, ZipEntrySource source, object arg1, object arg2)
CrcCalculatorStream OpenReader(string password)
void WriteHeader(Stream s, int cycle)
Encoding< ProvisionalAlternateEncoding > k__BackingField
void NotifySaveComplete()
bool UseUnicodeAsNecessary
static ZipEntry CreateFromNothing(string nameInArchive)
int ExtractOne(Stream output)
void OnExtractExisting(string path)
static DateTime _win32Epoch
void OnExtractProgress(long bytesWritten, long totalBytesToWrite)
bool _sourceWasJitProvided
long? _sourceStreamOriginalPosition
FileAttributes Attributes
void Extract(Stream stream)
static void HandleUnexpectedDataDescriptor(ZipEntry entry)
WriteDelegate _WriteDelegate
bool IncludedInMostRecentSave
void _WriteEntryData(Stream s)
Stream _inputDecryptorStream
void OnZipErrorWhileSaving(Exception e)
void WriteCentralDirectoryEntry(Stream s)
string _FileNameInArchive
short _CompressionMethod_FromZipFile
bool EmitTimesInWindowsFormatWhenSaving
ZipCrypto _zipCrypto_forWrite
ZipEntryTimestamp Timestamp
bool _restreamRequiredOnSave
CrcCalculatorStream OpenReader()
void FinishOutputStream(Stream s, CountingStream entryCounter, Stream encryptor, Stream compressor, CrcCalculatorStream output)
void PrepOutputStream(Stream s, long streamLength, [Out] CountingStream outputCounter, [Out] Stream encryptor, [Out] Stream compressor, [Out] CrcCalculatorStream output)
void CopyThroughWithRecompute(Stream outstream)
bool _ioOperationCanceled
void StoreRelativeOffset()
void ExtractWithPassword(string password)
bool ValidateOutput(string basedir, Stream outstream, [Out] string outFileName)
CrcCalculatorStream InternalOpenReader(string password)
static int FindExtraFieldSegment(byte[] extra, int offx, ushort targetHeaderId)
static int GetLengthOfCryptoHeaderBytes(EncryptionAlgorithm a)
void PostProcessOutput(Stream s)
CloseDelegate _CloseDelegate
Stream MaybeApplyEncryption(Stream s)
static bool ReadHeader(ZipEntry ze, Encoding defaultEncoding)
ZipEntryTimestamp _timestamp
void OnAfterExtract(string path)
long _CompressedFileDataSize
long SetInputAndFigureFileLength(Stream input)
static bool IsNotValidZipDirEntrySig(int signature)
void Extract(ExtractExistingFileAction extractExistingFile)
void SetupCryptoForExtract(string password)
void ValidateEncryption()
static string NameInArchive(string filename, string directoryPathInArchive)
OpenDelegate _OpenDelegate
string UnsupportedAlgorithm
static DateTime _zeroHour
override string ToString()
void Extract(string baseDirectory)
void ExtractWithPassword(ExtractExistingFileAction extractExistingFile, string password)
int ProcessExtraFieldZip64(byte[] buffer, int j, short dataSize, long posn)
Encoding AlternateEncoding
int ProcessExtraFieldWindowsTimes(byte[] buffer, int j, short dataSize, long posn)
void Extract(string baseDirectory, ExtractExistingFileAction extractExistingFile)
void MaybeUnsetCompressionMethodForWriting(int cycle)
bool EmitTimesInUnixFormatWhenSaving
void WriteStatus(string format, params object[] args)
bool _TrimVolumeFromFullyQualifiedPaths
int ProcessExtraFieldUnixTimes(byte[] buffer, int j, short dataSize, long posn)
static ZipEntry ReadDirEntry(ZipFile zf, Dictionary< string, object > previouslySeen)
bool? _entryRequiresZip64
byte[] ConstructExtraField(bool forCentralDirectory)
void InternalAddEntry(string name, ZipEntry entry)
bool OnSaveBlock(ZipEntry entry, long bytesXferred, long totalBytesToXfer)
Stream StreamForDiskNumber(uint diskNumber)
void Reset(bool whileSaving)
void RemoveEntry(ZipEntry entry)
TextWriter _StatusMessageTextWriter
bool OnExtractBlock(ZipEntry entry, long bytesWritten, long totalBytesToWrite)
bool OnExtractExisting(ZipEntry entry, string path)
bool OnZipErrorSaving(ZipEntry entry, Exception exc)
bool OnSingleEntryExtract(ZipEntry entry, string path, bool before)
static long ToInt64(byte[] value, int startIndex)
static void WriteLine(object value)
static void Delete(string path)
static string Combine(string path1, string path2)
static string GetFileName(string path)
static Encoding GetEncoding(int codepage)
static void Exit(object obj)
static void Enter(object obj)
static Thread CurrentThread
ExtractExistingFileAction
DateTime ToUniversalTime()
static DateTime FromFileTimeUtc(long fileTime)