ZipFormat class
#include <Jazz2/Utils/ZipFormat.h>
Constants and conversions of the ZIP format shared by ZipArchive and ZipWriter.
Public static variables
-
static std::
uint32_t LocalFileHeaderSignature constexpr - Signature of a local file header.
-
static std::
uint32_t CentralDirectorySignature constexpr - Signature of a central directory file header.
-
static std::
uint32_t EndOfCentralDirectorySignature constexpr - Signature of the end of central directory record.
-
static std::
uint32_t Zip64EndOfCentralDirectorySignature constexpr - Signature of the ZIP64 end of central directory record.
-
static std::
uint32_t Zip64LocatorSignature constexpr - Signature of the ZIP64 end of central directory locator.
-
static std::
uint32_t LocalFileHeaderSize constexpr - Fixed size of a local file header.
-
static std::
uint32_t CentralDirectoryHeaderSize constexpr - Fixed size of a central directory file header.
-
static std::
uint32_t EndOfCentralDirectorySize constexpr - Fixed size of the end of central directory record.
-
static std::
uint16_t EncryptedFlag constexpr - General purpose flag of an encrypted entry.
-
static std::
uint16_t Utf8NameFlag constexpr - General purpose flag of an entry with UTF-8 name.
-
static std::
uint16_t MethodStored constexpr - Compression method of stored entries.
-
static std::
uint16_t MethodDeflated constexpr - Compression method of entries compressed by Deflate.
Public static functions
-
static void ToDosDateTime(DateTime time,
std::
uint16_t& dosTime, std:: uint16_t& dosDate) - Converts a time to the DOS format of local time used by ZIP.
- static auto DecodeCp437(StringView name) -> String
- Converts a name stored in code page 437 to UTF-8.
-
static auto UpdateCrc32(std::
uint32_t crc, const void* data, std:: size_t length) -> std:: uint32_t - Continues a CRC-32 checksum with more data, starts with.
Constructors, destructors, conversion operators
- ZipFormat() deleted
Function documentation
static std:: uint32_t Jazz2:: Utils:: ZipFormat:: UpdateCrc32(std:: uint32_t crc,
const void* data,
std:: size_t length)
Continues a CRC-32 checksum with more data, starts with.
0