Class
UnixCompressArchive
OfficeIMO.Archives
Managed decompression of a single Unix compress (.Z) stream.
Inheritance
- object
- UnixCompressArchive
Methods
public static long Decompress(Stream source, Stream destination, ArchiveReadOptions? options = null, CancellationToken cancellationToken = default) #Decodes a .Z stream and returns its decoded byte count. Both streams remain open. Use archive inspection or extraction to stage output before publication.
Parameters
- source System.IO.Stream
- The readable stream positioned at the Unix compress header.
- destination System.IO.Stream
- The stream that receives decoded bytes.
- options OfficeIMO.Archives.ArchiveReadOptions? = null
- Optional input, decoder workspace, work and output limits.
- cancellationToken System.Threading.CancellationToken = default
- A token that cancels decompression.
Returns
long The number of decoded bytes.