GeneralBitFlags Enumeration

IC Sharp Sharp Zip Lib

ICSharpCode SharpZipLib Class Library

GeneralBitFlags Enumeration

Defines the contents of the general bit flags field for an archive entry.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

public enum GeneralBitFlags

Members

Member Name Description Value
Encrypted Bit 0 if set indicates that the file is encrypted 1
Method Bits 1 and 2 - Two bits defining the compression method (only for Method 6 Imploding and 8,9 Deflating) 6
Descriptor Bit 3 if set indicates a trailing data desciptor is appended to the entry data 8
ReservedPKware4 Bit 4 is reserved for use with method 8 for enhanced deflation 16
Patched Bit 5 if set indicates the file contains Pkzip compressed patched data. Requires version 2.7 or greater. 32
StrongEncryption Bit 6 if set strong encryption has been used for this entry. 64
Unused7 Bit 7 is currently unused 128
Unused8 Bit 8 is currently unused 256
Unused9 Bit 9 is currently unused 512
Unused10 Bit 10 is currently unused 1024
UnicodeText Bit 11 if set indicates the filename and comment fields for this file must be encoded using UTF-8. 2048
EnhancedCompress Bit 12 is documented as being reserved by PKware for enhanced compression. 4096
HeaderMasked Bit 13 if set indicates that values in the local header are masked to hide their actual values, and the central directory is encrypted. 8192
ReservedPkware14 Bit 14 is documented as being reserved for use by PKware 16384
ReservedPkware15 Bit 15 is documented as being reserved for use by PKware 32768

Requirements

Namespace: ICSharpCode.SharpZipLib.Zip

Assembly: ICSharpCode.SharpZipLib (in ICSharpCode.SharpZipLib.dll)

See Also

ICSharpCode.SharpZipLib.Zip Namespace