Show / Hide Table of Contents

Enum GeneralBitFlags

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

Namespace: ICSharpCode.SharpZipLib.Zip
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
[Flags]
public enum GeneralBitFlags

Fields

Name Description
Descriptor

Bit 3 if set indicates a trailing data descriptor is appended to the entry data

Encrypted

Bit 0 if set indicates that the file is encrypted

EnhancedCompress

Bit 12 is documented as being reserved by PKware for enhanced compression.

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.

Method

Bits 1 and 2 - Two bits defining the compression method (only for Method 6 Imploding and 8,9 Deflating)

Patched

Bit 5 if set indicates the file contains Pkzip compressed patched data. Requires version 2.7 or greater.

ReservedPkware14

Bit 14 is documented as being reserved for use by PKware

ReservedPkware15

Bit 15 is documented as being reserved for use by PKware

ReservedPKware4

Bit 4 is reserved for use with method 8 for enhanced deflation

StrongEncryption

Bit 6 if set indicates strong encryption has been used for this entry.

UnicodeText

Bit 11 if set indicates the filename and comment fields for this file must be encoded using UTF-8.

Unused10

Bit 10 is currently unused

Unused7

Bit 7 is currently unused

Unused8

Bit 8 is currently unused

Unused9

Bit 9 is currently unused

Extension Methods

GeneralBitFlagsExtensions.Includes(GeneralBitFlags)
GenericBitFlagsExtensions.HasAny(GeneralBitFlags)
GenericBitFlagsExtensions.HasAll(GeneralBitFlags)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2000-2022 SharpZipLib Contributors