Show / Hide Table of Contents

Class ZipConstants

This class contains constants used for Zip format files

Inheritance
System.Object
ZipConstants
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ICSharpCode.SharpZipLib.Zip
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
public static class ZipConstants

Fields

| Improve this Doc View Source

ArchiveExtraDataSignature

Signature for archive extra data signature (were headers are encrypted).

Declaration
public const int ArchiveExtraDataSignature = 117853008
Field Value
Type Description
System.Int32
| Improve this Doc View Source

CENDIGITALSIG

Central header digital signature

Declaration
[Obsolete("Use CentralHeaderDigitalSignaure instead")]
public const int CENDIGITALSIG = 84233040
Field Value
Type Description
System.Int32
| Improve this Doc View Source

CENHDR

Size of central header entry

Declaration
[Obsolete("Use CentralHeaderBaseSize instead")]
public const int CENHDR = 46
Field Value
Type Description
System.Int32
| Improve this Doc View Source

CENSIG

Signature for central header

Declaration
[Obsolete("Use CentralHeaderSignature instead")]
public const int CENSIG = 33639248
Field Value
Type Description
System.Int32
| Improve this Doc View Source

CENSIG64

Signature for Zip64 central file header

Declaration
[Obsolete("Use Zip64CentralFileHeaderSignature instead")]
public const int CENSIG64 = 101075792
Field Value
Type Description
System.Int32
| Improve this Doc View Source

CentralHeaderBaseSize

Size of central header entry (excluding variable fields)

Declaration
public const int CentralHeaderBaseSize = 46
Field Value
Type Description
System.Int32
| Improve this Doc View Source

CentralHeaderDigitalSignature

Central header digital signature

Declaration
public const int CentralHeaderDigitalSignature = 84233040
Field Value
Type Description
System.Int32
| Improve this Doc View Source

CentralHeaderSignature

Signature for central header

Declaration
public const int CentralHeaderSignature = 33639248
Field Value
Type Description
System.Int32
| Improve this Doc View Source

CRYPTO_HEADER_SIZE

Size of cryptographic header stored before entry data

Declaration
[Obsolete("Use CryptoHeaderSize instead")]
public const int CRYPTO_HEADER_SIZE = 12
Field Value
Type Description
System.Int32
| Improve this Doc View Source

CryptoHeaderSize

Size of 'classic' cryptographic header stored before any entry data

Declaration
public const int CryptoHeaderSize = 12
Field Value
Type Description
System.Int32
| Improve this Doc View Source

DataDescriptorSignature

Signature for data descriptor

Declaration
public const int DataDescriptorSignature = 134695760
Field Value
Type Description
System.Int32
Remarks

This is only used where the length, Crc, or compressed size isnt known when the entry is created and the output stream doesnt support seeking. The local entry cannot be 'patched' with the correct values in this case so the values are recorded after the data prefixed by this header, as well as in the central directory.

| Improve this Doc View Source

DataDescriptorSize

Size of data descriptor

Declaration
public const int DataDescriptorSize = 16
Field Value
Type Description
System.Int32
| Improve this Doc View Source

ENDHDR

Size of end of central record (excluding variable fields)

Declaration
[Obsolete("Use EndOfCentralRecordBaseSize instead")]
public const int ENDHDR = 22
Field Value
Type Description
System.Int32
| Improve this Doc View Source

EndOfCentralDirectorySignature

End of central directory record signature

Declaration
public const int EndOfCentralDirectorySignature = 101010256
Field Value
Type Description
System.Int32
| Improve this Doc View Source

EndOfCentralRecordBaseSize

Size of end of central record (excluding variable fields)

Declaration
public const int EndOfCentralRecordBaseSize = 22
Field Value
Type Description
System.Int32
| Improve this Doc View Source

ENDSIG

End of central directory record signature

Declaration
[Obsolete("Use EndOfCentralDirectorySignature instead")]
public const int ENDSIG = 101010256
Field Value
Type Description
System.Int32
| Improve this Doc View Source

EXTHDR

Size of data descriptor

Declaration
[Obsolete("Use DataDescriptorSize instead")]
public const int EXTHDR = 16
Field Value
Type Description
System.Int32
| Improve this Doc View Source

EXTSIG

Signature for data descriptor

Declaration
[Obsolete("Use DataDescriptorSignature instead")]
public const int EXTSIG = 134695760
Field Value
Type Description
System.Int32
Remarks

This is only used where the length, Crc, or compressed size isnt known when the entry is created and the output stream doesnt support seeking. The local entry cannot be 'patched' with the correct values in this case so the values are recorded after the data prefixed by this header, as well as in the central directory.

| Improve this Doc View Source

LocalHeaderBaseSize

Size of local entry header (excluding variable length fields at end)

Declaration
public const int LocalHeaderBaseSize = 30
Field Value
Type Description
System.Int32
| Improve this Doc View Source

LocalHeaderSignature

Signature for local entry header

Declaration
public const int LocalHeaderSignature = 67324752
Field Value
Type Description
System.Int32
| Improve this Doc View Source

LOCHDR

Size of local entry header (excluding variable length fields at end)

Declaration
[Obsolete("Use LocalHeaderBaseSize instead")]
public const int LOCHDR = 30
Field Value
Type Description
System.Int32
| Improve this Doc View Source

LOCSIG

Signature for local entry header

Declaration
[Obsolete("Use LocalHeaderSignature instead")]
public const int LOCSIG = 67324752
Field Value
Type Description
System.Int32
| Improve this Doc View Source

SPANNINGSIG

Signature for spanning entry

Declaration
[Obsolete("Use SpanningSignature instead")]
public const int SPANNINGSIG = 134695760
Field Value
Type Description
System.Int32
| Improve this Doc View Source

SpanningSignature

Signature for spanning entry

Declaration
public const int SpanningSignature = 134695760
Field Value
Type Description
System.Int32
| Improve this Doc View Source

SpanningTempSignature

Signature for temporary spanning entry

Declaration
public const int SpanningTempSignature = 808471376
Field Value
Type Description
System.Int32
| Improve this Doc View Source

SPANTEMPSIG

Signature for temporary spanning entry

Declaration
[Obsolete("Use SpanningTempSignature instead")]
public const int SPANTEMPSIG = 808471376
Field Value
Type Description
System.Int32
| Improve this Doc View Source

VERSION_AES

Version indicating AES encryption

Declaration
public const int VERSION_AES = 51
Field Value
Type Description
System.Int32
| Improve this Doc View Source

VERSION_MADE_BY

The version made by field for entries in the central header when created by this library

Declaration
[Obsolete("Use VersionMadeBy instead")]
public const int VERSION_MADE_BY = 51
Field Value
Type Description
System.Int32
Remarks

This is also the Zip version for the library when comparing against the version required to extract for an entry. See ZipInputStream.CanDecompressEntry.

| Improve this Doc View Source

VERSION_STRONG_ENCRYPTION

The minimum version required to support strong encryption

Declaration
[Obsolete("Use VersionStrongEncryption instead")]
public const int VERSION_STRONG_ENCRYPTION = 50
Field Value
Type Description
System.Int32
| Improve this Doc View Source

VersionBZip2

The version required for BZip2 compression (4.6 or higher)

Declaration
public const int VersionBZip2 = 46
Field Value
Type Description
System.Int32
| Improve this Doc View Source

VersionMadeBy

The version made by field for entries in the central header when created by this library

Declaration
public const int VersionMadeBy = 51
Field Value
Type Description
System.Int32
Remarks

This is also the Zip version for the library when comparing against the version required to extract for an entry. See CanDecompress.

| Improve this Doc View Source

VersionStrongEncryption

The minimum version required to support strong encryption

Declaration
public const int VersionStrongEncryption = 50
Field Value
Type Description
System.Int32
| Improve this Doc View Source

VersionZip64

The version required for Zip64 extensions (4.5 or higher)

Declaration
public const int VersionZip64 = 45
Field Value
Type Description
System.Int32
| Improve this Doc View Source

Zip64CentralDirLocatorSignature

Signature for Zip64 central directory locator

Declaration
public const int Zip64CentralDirLocatorSignature = 117853008
Field Value
Type Description
System.Int32
| Improve this Doc View Source

Zip64CentralFileHeaderSignature

Signature for Zip64 central file header

Declaration
public const int Zip64CentralFileHeaderSignature = 101075792
Field Value
Type Description
System.Int32
| Improve this Doc View Source

Zip64DataDescriptorSize

Size of Zip64 data descriptor

Declaration
public const int Zip64DataDescriptorSize = 24
Field Value
Type Description
System.Int32
| Improve this Doc View Source

Zip64EndOfCentralDirectoryLocatorSize

The size of the Zip64 central directory locator.

Declaration
public const int Zip64EndOfCentralDirectoryLocatorSize = 20
Field Value
Type Description
System.Int32
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2000-2022 SharpZipLib Contributors