Read/write data in the zip archive format. Makes use of the etc.c.zlib compression library.
Thrown on error.
A member of the ZipArchive.
Read Only
Read Only
Read/Write: normally set to 0
Read/Write: 0 for compression, 8 for deflate
Read Only: cyclic redundancy check (CRC) value
Read Only: size of data of member in compressed form.
Read Only: size of data of member in expanded form.
Read Only: should be 0.
Read/Write
Read/Write
Read/Write: extra data for this member.
Read/Write: comment associated with this member.
Read Only: data of member in compressed form.
Read/Write: data of member in uncompressed form.
Object representing the entire archive. ZipArchives are collections of ArchiveMembers.
Read Only: array representing the entire contents of the archive.
Read Only: 0 since multi-disk zip archives are not supported.
Read Only: 0 since multi-disk zip archives are not supported.
Read Only: number of ArchiveMembers in the directory.
Read Only: same as totalEntries.
Read/Write: the archive comment. Must be less than 65536 bytes in length.
Read Only: array indexed by the name of each member of the archive.
ZipArchive archive = new ZipArchive(data); foreach (ArchiveMember am; archive.directory) { writefln("member name is '%s'", am.name); }
Constructor to use when creating a new archive.
Add de to the archive.
Delete de from the archive.
Construct an archive out of the current members of the archive.
Fills in the properties data[], diskNumber, diskStartDir, numEntries, totalEntries, and directory[]. For each ArchiveMember, fills in properties crc32, compressedSize, compressedData[].
Constructor to use when reading an existing archive.
Fills in the properties data[], diskNumber, diskStartDir, numEntries, totalEntries, comment[], and directory[]. For each ArchiveMember, fills in properties madeVersion, extractVersion, flags, compressionMethod, time, crc32, compressedSize, expandedSize, compressedData[], diskNumber, internalAttributes, externalAttributes, name[], extra[], comment[]. Use expand() to get the expanded data for each ArchiveMember.
void[] buffer | the entire contents of the archive. |
Decompress the contents of archive member de and return the expanded data.
Fills in properties extractVersion, flags, compressionMethod, time, crc32, compressedSize, expandedSize, expandedData[], name[], extra[].