ddn.archive.ar
ddn.archive.ar
AR archive reader and writer implementing ddn.api.archive.
Supports the System V / GNU AR format used for Unix .a static libraries and .deb packages. Long filenames are handled via the BSD `//` extended name mechanism.
Copyright
BSD-3-Clause
Module Initializers 1
shared static this
()Types 2
classArReader : ArchiveReader
Methods
void setProgressCallback(ArchiveProgressCallback callback)bool contains(string path)void readContent(const EntryInfo entry, ContentSink sink)void extractAll(string destDir)void close()Constructors
this(const(ubyte)[] data, ReadOptions opts)classArWriter : ArchiveWriter
Methods
void setOutputSink(ContentSink sink)void setProgressCallback(ArchiveProgressCallback callback)void addDirectory(string path, FilePermissions perms = FilePermissions.init)void addFile(string path, const(ubyte)[] content,
EntryWriteOptions opts = EntryWriteOptions.init)void addFile(string path, scope const(ubyte)[] delegate() source,
ulong size = 0, EntryWriteOptions opts = EntryWriteOptions.init)void addFileFrom(string archivePath, string filesystemPath,
EntryWriteOptions opts = EntryWriteOptions.init)void addSymlink(string path, string target)void addHardlink(string path, string target)void removeEntry(string path)void updateEntry(string path, const(ubyte)[] content,
EntryWriteOptions opts = EntryWriteOptions.init)void setComment(string comment)void finish()void close()Constructors
this(ContentSink sink, WriteOptions opts)Functions 3
fn
ArchiveReader makeArReader(const(ubyte)[] data, ReadOptions opts)fn
ArchiveWriter makeArWriter(ContentSink sink, WriteOptions opts)fn
ArchiveFormat detectArFormat(const(ubyte)[] header)