Esempio n. 1
0
 public Inflater(bool doGZip) {
     this.using_gzip = doGZip;
     this.output = new OutputWindow();
     this.input = new InputBuffer();
     this.gZipDecoder = new GZipDecoder(this.input);
     this.codeList = new byte[320];
     this.codeLengthTreeCodeLength = new byte[0x13];
     this.Reset();
 }
Esempio n. 2
0
        private IFileFormatReader _formatReader;  // class to decode header and footer (e.g. gzip)

        public InflaterManaged(bool deflate64)
        {
            _output = new OutputWindow();
            _input = new InputBuffer();

            _codeList = new byte[HuffmanTree.MaxLiteralTreeElements + HuffmanTree.MaxDistTreeElements];
            _codeLengthTreeCodeLength = new byte[HuffmanTree.NumberOfCodeLengthTreeElements];
            _deflate64 = deflate64;
            Reset();
        }
Esempio n. 3
0
        internal InflaterManaged(IFileFormatReader reader, bool deflate64)
        {
            _output = new OutputWindow();
            _input = new InputBuffer();

            _codeList = new byte[HuffmanTree.MaxLiteralTreeElements + HuffmanTree.MaxDistTreeElements];
            _codeLengthTreeCodeLength = new byte[HuffmanTree.NumberOfCodeLengthTreeElements];
            _deflate64 = deflate64;
            if (reader != null)
            {
                _formatReader = reader;
                _hasFormatReader = true;
            }
            Reset();
        }
Esempio n. 4
0
        GZipDecoder gZipDecoder;        // class to decode gzip header and footer

        public Inflater(bool doGZip) {
            using_gzip = doGZip;            
            output = new OutputWindow();
            input  = new InputBuffer();
            gZipDecoder = new GZipDecoder(input);

            codeList = new byte[HuffmanTree.MaxLiteralTreeElements + HuffmanTree.MaxDistTreeElements];
            codeLengthTreeCodeLength = new byte[HuffmanTree.NumberOfCodeLengthTreeElements];
            Reset();
        }
Esempio n. 5
0
        IFileFormatReader formatReader;  // class to decode header and footer (e.g. gzip)

        public Inflater() {           
            output = new OutputWindow();
            input  = new InputBuffer();

            codeList = new byte[HuffmanTree.MaxLiteralTreeElements + HuffmanTree.MaxDistTreeElements];
            codeLengthTreeCodeLength = new byte[HuffmanTree.NumberOfCodeLengthTreeElements];
            Reset();
        }