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
파일 보기 프로젝트 열기: NexusMods/NexusModManager-4.5

공개 메소드들

메소드 설명
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