|
Fingerprint_Card
|
This class contains constants used for Zip format files. More...
Static Public Member Functions | |
| static string | ConvertToString (byte[] data, int count) |
| Convert a portion of a byte array to a string. | |
| static string | ConvertToString (byte[] data) |
| Convert a byte array to string. | |
| static string | ConvertToStringExt (int flags, byte[] data, int count) |
| Convert a byte array to string. | |
| static string | ConvertToStringExt (int flags, byte[] data) |
| Convert a byte array to string. | |
| static byte[] | ConvertToArray (string str) |
| Convert a string to a byte array. | |
| static byte[] | ConvertToArray (int flags, string str) |
| Convert a string to a byte array. | |
Static Public Attributes | |
| const int | VersionMadeBy = 51 |
| The version made by field for entries in the central header when created by this library. | |
| const int | VERSION_MADE_BY = 51 |
| The version made by field for entries in the central header when created by this library. | |
| const int | VersionStrongEncryption = 50 |
| The minimum version required to support strong encryption. | |
| const int | VERSION_STRONG_ENCRYPTION = 50 |
| The minimum version required to support strong encryption. | |
| const int | VERSION_AES = 51 |
| Version indicating AES encryption. | |
| const int | VersionZip64 = 45 |
| The version required for Zip64 extensions (4.5 or higher) | |
| const int | LocalHeaderBaseSize = 30 |
| Size of local entry header (excluding variable length fields at end) | |
| const int | LOCHDR = 30 |
| Size of local entry header (excluding variable length fields at end) | |
| const int | Zip64DataDescriptorSize = 24 |
| Size of Zip64 data descriptor. | |
| const int | DataDescriptorSize = 16 |
| Size of data descriptor. | |
| const int | EXTHDR = 16 |
| Size of data descriptor. | |
| const int | CentralHeaderBaseSize = 46 |
| Size of central header entry (excluding variable fields) | |
| const int | CENHDR = 46 |
| Size of central header entry. | |
| const int | EndOfCentralRecordBaseSize = 22 |
| Size of end of central record (excluding variable fields) | |
| const int | ENDHDR = 22 |
| Size of end of central record (excluding variable fields) | |
| const int | CryptoHeaderSize = 12 |
| Size of 'classic' cryptographic header stored before any entry data. | |
| const int | CRYPTO_HEADER_SIZE = 12 |
| Size of cryptographic header stored before entry data. | |
| const int | LocalHeaderSignature = 'P' | ('K' << 8) | (3 << 16) | (4 << 24) |
| Signature for local entry header. | |
| const int | LOCSIG = 'P' | ('K' << 8) | (3 << 16) | (4 << 24) |
| Signature for local entry header. | |
| const int | SpanningSignature = 'P' | ('K' << 8) | (7 << 16) | (8 << 24) |
| Signature for spanning entry. | |
| const int | SPANNINGSIG = 'P' | ('K' << 8) | (7 << 16) | (8 << 24) |
| Signature for spanning entry. | |
| const int | SpanningTempSignature = 'P' | ('K' << 8) | ('0' << 16) | ('0' << 24) |
| Signature for temporary spanning entry. | |
| const int | SPANTEMPSIG = 'P' | ('K' << 8) | ('0' << 16) | ('0' << 24) |
| Signature for temporary spanning entry. | |
| const int | DataDescriptorSignature = 'P' | ('K' << 8) | (7 << 16) | (8 << 24) |
| Signature for data descriptor. | |
| const int | EXTSIG = 'P' | ('K' << 8) | (7 << 16) | (8 << 24) |
| Signature for data descriptor. | |
| const int | CENSIG = 'P' | ('K' << 8) | (1 << 16) | (2 << 24) |
| Signature for central header. | |
| const int | CentralHeaderSignature = 'P' | ('K' << 8) | (1 << 16) | (2 << 24) |
| Signature for central header. | |
| const int | Zip64CentralFileHeaderSignature = 'P' | ('K' << 8) | (6 << 16) | (6 << 24) |
| Signature for Zip64 central file header. | |
| const int | CENSIG64 = 'P' | ('K' << 8) | (6 << 16) | (6 << 24) |
| Signature for Zip64 central file header. | |
| const int | Zip64CentralDirLocatorSignature = 'P' | ('K' << 8) | (6 << 16) | (7 << 24) |
| Signature for Zip64 central directory locator. | |
| const int | ArchiveExtraDataSignature = 'P' | ('K' << 8) | (6 << 16) | (7 << 24) |
| Signature for archive extra data signature (were headers are encrypted). | |
| const int | CentralHeaderDigitalSignature = 'P' | ('K' << 8) | (5 << 16) | (5 << 24) |
| Central header digitial signature. | |
| const int | CENDIGITALSIG = 'P' | ('K' << 8) | (5 << 16) | (5 << 24) |
| Central header digitial signature. | |
| const int | EndOfCentralDirectorySignature = 'P' | ('K' << 8) | (5 << 16) | (6 << 24) |
| End of central directory record signature. | |
| const int | ENDSIG = 'P' | ('K' << 8) | (5 << 16) | (6 << 24) |
| End of central directory record signature. | |
Properties | |
| static int | DefaultCodePage [get, set] |
| Default encoding used for string conversion. 0 gives the default system OEM code page. Dont use unicode encodings if you want to be Zip compatible! Using the default code page isnt the full solution neccessarily there are many variable factors, codepage 850 is often a good choice for European users, however be careful about compatability. | |
Private Member Functions | |
| ZipConstants () | |
| Initialise default instance of ZipConstants | |
Static Private Attributes | |
| static int | defaultCodePage = Thread.CurrentThread.CurrentCulture.TextInfo.OEMCodePage |
This class contains constants used for Zip format files.
|
private |
Initialise default instance of ZipConstants
Private to prevent instances being created.
|
static |
Convert a string to a byte array.
| flags | The applicable general purpose bits flags |
| str | String to convert to an array |

|
static |
Convert a string to a byte array.
| str | String to convert to an array |

|
static |
Convert a byte array to string.
| data | Byte array to convert |

|
static |
Convert a portion of a byte array to a string.
| data | Data to convert to string |
| count | Number of bytes to convert starting from index 0 |

|
static |
Convert a byte array to string.
| data | Byte array to convert |
| flags | The applicable general purpose bits flags |

|
static |
Convert a byte array to string.
| flags | The applicable general purpose bits flags |
| data | Byte array to convert |
| count | The number of bytes to convert. |


|
static |
Signature for archive extra data signature (were headers are encrypted).
|
static |
Central header digitial signature.
|
static |
Size of central header entry.
|
static |
Signature for central header.
|
static |
Signature for Zip64 central file header.
|
static |
Size of central header entry (excluding variable fields)
|
static |
Central header digitial signature.
|
static |
Signature for central header.
|
static |
Size of cryptographic header stored before entry data.
|
static |
Size of 'classic' cryptographic header stored before any entry data.
|
static |
Signature for data descriptor.
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.
|
static |
Size of data descriptor.
|
staticprivate |
|
static |
Size of end of central record (excluding variable fields)
|
static |
End of central directory record signature.
|
static |
Size of end of central record (excluding variable fields)
|
static |
End of central directory record signature.
|
static |
Size of data descriptor.
|
static |
Signature for data descriptor.
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.
|
static |
Size of local entry header (excluding variable length fields at end)
|
static |
Signature for local entry header.
|
static |
Size of local entry header (excluding variable length fields at end)
|
static |
Signature for local entry header.
|
static |
Signature for spanning entry.
|
static |
Signature for spanning entry.
|
static |
Signature for temporary spanning entry.
|
static |
Signature for temporary spanning entry.
|
static |
Version indicating AES encryption.
|
static |
The version made by field for entries in the central header when created by this library.
This is also the Zip version for the library when comparing against the version required to extract for an entry. See ZipInputStream.CanDecompressEntry.
|
static |
The minimum version required to support strong encryption.
|
static |
The version made by field for entries in the central header when created by this library.
This is also the Zip version for the library when comparing against the version required to extract for an entry. See ZipEntry.CanDecompress.
|
static |
The minimum version required to support strong encryption.
|
static |
The version required for Zip64 extensions (4.5 or higher)
|
static |
Signature for Zip64 central directory locator.
|
static |
Signature for Zip64 central file header.
|
static |
Size of Zip64 data descriptor.
|
staticgetset |
Default encoding used for string conversion. 0 gives the default system OEM code page. Dont use unicode encodings if you want to be Zip compatible! Using the default code page isnt the full solution neccessarily there are many variable factors, codepage 850 is often a good choice for European users, however be careful about compatability.