ArchiveWriter.addFile
void addFile(string path, const(ubyte)[] content, EntryWriteOptions opts = EntryWriteOptions.init)Add a file entry with content from a byte slice.
Parameters
path | File path within the archive. |
content | The file content. |
opts | Per-entry write options. |
void addFile(string path, scope const(ubyte)[] delegate() source,
ulong size = 0, EntryWriteOptions opts = EntryWriteOptions.init)Add a file entry with content from a delegate.
The delegate is called repeatedly until it returns an empty slice.
Parameters
path | File path within the archive. |
source | Delegate producing content chunks. |
size | Known uncompressed size (0 if unknown). |
opts | Per-entry write options. |