C# 클래스 ICSharpCode.SharpZipLib.Zip.Compression.DeflaterEngine

Low level compression engine for deflate algorithm which uses a 32K sliding window with secondary compression from Huffman/Shannon-Fano codes.
파일 보기 프로젝트 열기: icsharpcode/SharpZipLib 1 사용 예제들

공개 메소드들

메소드 설명
Deflate ( bool flush, bool finish ) : bool

Deflate drives actual compression of data

DeflaterEngine ( DeflaterPending pending ) : System

Construct instance with pending buffer

FillWindow ( ) : void

Fill the window

NeedsInput ( ) : bool

Determines if more input is needed.

Reset ( ) : void

Reset internal state

ResetAdler ( ) : void

Reset Adler checksum

SetDictionary ( byte buffer, int offset, int length ) : void

Set compression dictionary

SetInput ( byte buffer, int offset, int count ) : void

Sets input data to be deflated. Should only be called when NeedsInput() returns true

SetLevel ( int level ) : void

Set the deflate level (0-9)

비공개 메소드들

메소드 설명
DeflateFast ( bool flush, bool finish ) : bool
DeflateSlow ( bool flush, bool finish ) : bool
DeflateStored ( bool flush, bool finish ) : bool
FindLongestMatch ( int curMatch ) : bool

Find the best (longest) string in the window matching the string starting at strstart. Preconditions: strstart + DeflaterConstants.MAX_MATCH <= window.length.

InsertString ( ) : int

Inserts the current string in the head hash and returns the previous value for this hash.

SlideWindow ( ) : void
UpdateHash ( ) : void

메소드 상세

Deflate() 공개 메소드

Deflate drives actual compression of data
public Deflate ( bool flush, bool finish ) : bool
flush bool True to flush input buffers
finish bool Finish deflation with the current input.
리턴 bool

DeflaterEngine() 공개 메소드

Construct instance with pending buffer
public DeflaterEngine ( DeflaterPending pending ) : System
pending DeflaterPending /// Pending buffer to use ///
리턴 System

FillWindow() 공개 메소드

Fill the window
public FillWindow ( ) : void
리턴 void

NeedsInput() 공개 메소드

Determines if more input is needed.
public NeedsInput ( ) : bool
리턴 bool

Reset() 공개 메소드

Reset internal state
public Reset ( ) : void
리턴 void

ResetAdler() 공개 메소드

Reset Adler checksum
public ResetAdler ( ) : void
리턴 void

SetDictionary() 공개 메소드

Set compression dictionary
public SetDictionary ( byte buffer, int offset, int length ) : void
buffer byte The buffer containing the dictionary data
offset int The offset in the buffer for the first byte of data
length int The length of the dictionary data.
리턴 void

SetInput() 공개 메소드

Sets input data to be deflated. Should only be called when NeedsInput() returns true
public SetInput ( byte buffer, int offset, int count ) : void
buffer byte The buffer containing input data.
offset int The offset of the first byte of data.
count int The number of bytes of data to use as input.
리턴 void

SetLevel() 공개 메소드

Set the deflate level (0-9)
public SetLevel ( int level ) : void
level int The value to set the level to.
리턴 void