scopedOpenArchive
fn
ScopedArchiveReader scopedOpenArchive(string path, ReadOptions opts = ReadOptions.init)Open archive with automatic cleanup.
Returns a ScopedArchiveReader that automatically closes the reader when it goes out of scope.
Parameters
path | Path to the archive file. |
opts | Read options including format and password. |
Returns
A ScopedArchiveReader wrapping the opened archive.
Throws
ArchiveError if the file cannot be read or format is unknown.
fn
ScopedArchiveReader scopedOpenArchive(const(ubyte)[] data, ReadOptions opts = ReadOptions.init)Open archive from data with automatic cleanup.
Parameters
data | The archive data as a byte slice. |
opts | Read options including format and password. |
Returns
A ScopedArchiveReader wrapping the opened archive.