C# Класс 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.
Наследование: ICodeProgress
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

DecoderProgressWatcher() публичный Метод

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.
Результат System

SetProgress() публичный Метод

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.
Результат void