The OpenD Programming Language

ZipArchive

Object representing the entire archive. ZipArchives are collections of ArchiveMembers.

Constructors

this
this()

Constructor to use when creating a new archive.

this
this(void[] buffer)

Constructor to use when reading an existing archive.

Members

Functions

addMember
void addMember(ArchiveMember de)

Add a member to the archive. The file is compressed on the fly.

build
void[] build()

Construct the entire contents of the current members of the archive.

deleteMember
void deleteMember(ArchiveMember de)

Delete member de from the archive. Uses the name of the member to detect which element to delete.

expand
ubyte[] expand(ArchiveMember de)

Decompress the contents of a member.

Properties

data
ubyte[] data [@property getter]

Array representing the entire contents of the archive.

directory
ArchiveMember[string] directory [@property getter]

Associative array indexed by the name of each member of the archive.

isZip64
bool isZip64 [@property getter]
bool isZip64 [@property setter]

True when the archive is in Zip64 format. Set this to true to force building a Zip64 archive.

totalEntries
uint totalEntries [@property getter]

Number of ArchiveMembers in the directory.

Variables

comment
string comment;

The archive comment. Must be less than 65536 bytes in length.

Meta