ICSharpCode.SharpZipLib.Zip.Compression.DeflaterEngine.DeflaterEngine C# (CSharp) Method

DeflaterEngine() public method

Construct instance with pending buffer
public DeflaterEngine ( DeflaterPending pending ) : System
pending DeflaterPending /// Pending buffer to use ///
return System
        public DeflaterEngine(DeflaterPending pending)
        {
            this.pending = pending;
            huffman = new DeflaterHuffman(pending);
            adler = new Adler32();

            window = new byte[2 * DeflaterConstants.WSIZE];
            head = new short[DeflaterConstants.HASH_SIZE];
            prev = new short[DeflaterConstants.WSIZE];

            // We start at index 1, to avoid an implementation deficiency, that
            // we cannot build a repeat pattern at index 0.
            blockStart = strstart = 1;
        }