View source code
Display the source code in std/zip.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Class std.zip.ArchiveMember

A member of the ZipArchive.

class ArchiveMember ;

Fields

NameTypeDescription
comment stringRead/Write: comment associated with this member.
extra ubyte[]Read/Write: extra data for this member.
flags ushortRead/Write: normally set to 0
internalAttributes ushortRead/Write
name stringRead/Write: Usually the file name of the archive member; it is used to index the archive directory for the member. Each member must have a unique name[]. Do not change without removing member from the directory first.

Properties

NameTypeDescription
compressedData[get] ubyte[]Read Only: data of member in compressed form.
compressedSize[get] uintRead Only: size of data of member in compressed form.
compressionMethod[get] CompressionMethodRead compression method used for this member
compressionMethod[set] CompressionMethodWrite compression method used for this member
crc32[get] uintRead Only: cyclic redundancy check (CRC) value
diskNumber[get] ushortRead Only: should be 0.
expandedData[get] ubyte[]Read data of member in uncompressed form.
expandedData[set] ubyte[]Write data of member in uncompressed form.
expandedSize[get] uintRead Only: size of data of member in expanded form.
extractVersion[get] ushortRead Only
fileAttributes[set] uintSet the OS specific file attributes, as obtained by getAttributes or DirEntry.attributes, for this archive member.
fileAttributes[get] uintGet the OS specific file attributes for the archive member.
index[get] uintThe index of this archive member within the archive.
time[set] SysTimeSet the last modification time for this member.
time[get] uintGet the last modification time for this member.

Methods

NameDescription
factory Create instance of class specified by the fully qualified name classname. The class must either have no constructors or have a default constructor.
opCmp Compare with another Object obj.
opEquals Test whether this is equal to o. The default implementation only compares by identity (using the is operator). Generally, overrides for opEquals should attempt to compare objects by their contents.
toHash Compute hash function for Object.
toString Convert Object to a human readable string.

Authors

Walter Bright

License

Boost License 1.0.