Class ZipConstants
This class contains constants used for Zip format files
Inheritance
Inherited Members
Namespace: ICSharpCode.SharpZipLib.Zip
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
public static class ZipConstants
Fields
| Improve this Doc View SourceArchiveExtraDataSignature
Signature for archive extra data signature (were headers are encrypted).
Declaration
public const int ArchiveExtraDataSignature = 117853008
Field Value
Type | Description |
---|---|
System.Int32 |
CENDIGITALSIG
Central header digital signature
Declaration
[Obsolete("Use CentralHeaderDigitalSignaure instead")]
public const int CENDIGITALSIG = 84233040
Field Value
Type | Description |
---|---|
System.Int32 |
CENHDR
Size of central header entry
Declaration
[Obsolete("Use CentralHeaderBaseSize instead")]
public const int CENHDR = 46
Field Value
Type | Description |
---|---|
System.Int32 |
CENSIG
Signature for central header
Declaration
[Obsolete("Use CentralHeaderSignature instead")]
public const int CENSIG = 33639248
Field Value
Type | Description |
---|---|
System.Int32 |
CENSIG64
Signature for Zip64 central file header
Declaration
[Obsolete("Use Zip64CentralFileHeaderSignature instead")]
public const int CENSIG64 = 101075792
Field Value
Type | Description |
---|---|
System.Int32 |
CentralHeaderBaseSize
Size of central header entry (excluding variable fields)
Declaration
public const int CentralHeaderBaseSize = 46
Field Value
Type | Description |
---|---|
System.Int32 |
CentralHeaderDigitalSignature
Central header digital signature
Declaration
public const int CentralHeaderDigitalSignature = 84233040
Field Value
Type | Description |
---|---|
System.Int32 |
CentralHeaderSignature
Signature for central header
Declaration
public const int CentralHeaderSignature = 33639248
Field Value
Type | Description |
---|---|
System.Int32 |
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 |
CryptoHeaderSize
Size of 'classic' cryptographic header stored before any entry data
Declaration
public const int CryptoHeaderSize = 12
Field Value
Type | Description |
---|---|
System.Int32 |
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.
DataDescriptorSize
Size of data descriptor
Declaration
public const int DataDescriptorSize = 16
Field Value
Type | Description |
---|---|
System.Int32 |
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 |
EndOfCentralDirectorySignature
End of central directory record signature
Declaration
public const int EndOfCentralDirectorySignature = 101010256
Field Value
Type | Description |
---|---|
System.Int32 |
EndOfCentralRecordBaseSize
Size of end of central record (excluding variable fields)
Declaration
public const int EndOfCentralRecordBaseSize = 22
Field Value
Type | Description |
---|---|
System.Int32 |
ENDSIG
End of central directory record signature
Declaration
[Obsolete("Use EndOfCentralDirectorySignature instead")]
public const int ENDSIG = 101010256
Field Value
Type | Description |
---|---|
System.Int32 |
EXTHDR
Size of data descriptor
Declaration
[Obsolete("Use DataDescriptorSize instead")]
public const int EXTHDR = 16
Field Value
Type | Description |
---|---|
System.Int32 |
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.
LocalHeaderBaseSize
Size of local entry header (excluding variable length fields at end)
Declaration
public const int LocalHeaderBaseSize = 30
Field Value
Type | Description |
---|---|
System.Int32 |
LocalHeaderSignature
Signature for local entry header
Declaration
public const int LocalHeaderSignature = 67324752
Field Value
Type | Description |
---|---|
System.Int32 |
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 |
LOCSIG
Signature for local entry header
Declaration
[Obsolete("Use LocalHeaderSignature instead")]
public const int LOCSIG = 67324752
Field Value
Type | Description |
---|---|
System.Int32 |
SPANNINGSIG
Signature for spanning entry
Declaration
[Obsolete("Use SpanningSignature instead")]
public const int SPANNINGSIG = 134695760
Field Value
Type | Description |
---|---|
System.Int32 |
SpanningSignature
Signature for spanning entry
Declaration
public const int SpanningSignature = 134695760
Field Value
Type | Description |
---|---|
System.Int32 |
SpanningTempSignature
Signature for temporary spanning entry
Declaration
public const int SpanningTempSignature = 808471376
Field Value
Type | Description |
---|---|
System.Int32 |
SPANTEMPSIG
Signature for temporary spanning entry
Declaration
[Obsolete("Use SpanningTempSignature instead")]
public const int SPANTEMPSIG = 808471376
Field Value
Type | Description |
---|---|
System.Int32 |
VERSION_AES
Version indicating AES encryption
Declaration
public const int VERSION_AES = 51
Field Value
Type | Description |
---|---|
System.Int32 |
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.
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 |
VersionBZip2
The version required for BZip2 compression (4.6 or higher)
Declaration
public const int VersionBZip2 = 46
Field Value
Type | Description |
---|---|
System.Int32 |
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.
VersionStrongEncryption
The minimum version required to support strong encryption
Declaration
public const int VersionStrongEncryption = 50
Field Value
Type | Description |
---|---|
System.Int32 |
VersionZip64
The version required for Zip64 extensions (4.5 or higher)
Declaration
public const int VersionZip64 = 45
Field Value
Type | Description |
---|---|
System.Int32 |
Zip64CentralDirLocatorSignature
Signature for Zip64 central directory locator
Declaration
public const int Zip64CentralDirLocatorSignature = 117853008
Field Value
Type | Description |
---|---|
System.Int32 |
Zip64CentralFileHeaderSignature
Signature for Zip64 central file header
Declaration
public const int Zip64CentralFileHeaderSignature = 101075792
Field Value
Type | Description |
---|---|
System.Int32 |
Zip64DataDescriptorSize
Size of Zip64 data descriptor
Declaration
public const int Zip64DataDescriptorSize = 24
Field Value
Type | Description |
---|---|
System.Int32 |
Zip64EndOfCentralDirectoryLocatorSize
The size of the Zip64 central directory locator.
Declaration
public const int Zip64EndOfCentralDirectoryLocatorSize = 20
Field Value
Type | Description |
---|---|
System.Int32 |