C# Class Nexus.Client.Mods.Formats.OMod.OMod.DecoderProgressWatcher

This class watches to progress of the decompression of 7zip compressed file blicks in the OMod.
In the current implementation of the compression library we are using (SevenZipSharp), even though the SevenZip.Sdk.Compression.Lzma.Decoder.Code(System.IO.Stream, System.IO.Stream, long, long, ICodeProgress) method accepts an ICodeProgress argument, it is unused. Thus progress is not reported. We have implemented here anyway so that if it is ever implemented we'll be ready.
Inheritance: ICodeProgress
Exibir arquivo Open project: NexusMods/NexusModManager-4.5

Public Methods

Method Description
DecoderProgressWatcher ( System.Int64 p_intTotalSize ) : System

A simple constructor that initializes the object with the given values.

SetProgress ( long inSize, long outSize ) : void

Reports the progress of the decoder.

Method Details

DecoderProgressWatcher() public method

A simple constructor that initializes the object with the given values.
public DecoderProgressWatcher ( System.Int64 p_intTotalSize ) : System
p_intTotalSize System.Int64 The total size of the file block being decoded.
return System

SetProgress() public method

Reports the progress of the decoder.
public SetProgress ( long inSize, long outSize ) : void
inSize long The number of bytes of the compress file block that have been processed.
outSize long The number of uncompressed bytes generated.
return void