Class StampedZipArchive
Provides a new zip with its stamp in front (ZipStamp): the stamp's space goes first, the zip after it, and closing the archive fills the stamp in, so what writes the zip cannot leave it out.
public sealed class StampedZipArchive : ZipArchive, IAsyncDisposable, IDisposable
- Inheritance
-
StampedZipArchive
- Implements
- Inherited Members
- Extension Methods
Constructors
StampedZipArchive(Stream)
Initializes a new instance of the StampedZipArchive class, which writes a zip into a stream after its stamp's space.
public StampedZipArchive(Stream stream)
Parameters
streamStreamThe stream, at its start, which can seek, read and write, such as a new file's; it stays open after the archive.
Exceptions
- ArgumentException
The stream cannot seek, read or write, or is not at its start.
Methods
Dispose(bool)
Called by the Dispose() and ~Object() methods to release the unmanaged resources used by the current instance of the ZipArchive class, and optionally finishes writing the archive and releases the managed resources.
protected override void Dispose(bool disposing)
Parameters
disposingbooltrue to finish writing the archive and release unmanaged and managed resources; false to release only unmanaged resources.
Remarks
After the zip is written, it hashes the stream and writes the stamp.
DisposeAsyncCore()
protected override ValueTask DisposeAsyncCore()
Returns
Remarks
After the zip is written, it hashes the stream and writes the stamp.