예제 #1
0
        public LzxStream(Stream stream, int windowBits, int fileSize)
        {
            _bitStream = new LzxBitStream(new BufferedStream(stream, 8192));
            _windowBits = windowBits;
            _fileSize = fileSize;
            _numPositionSlots = _windowBits * 2;
            _buffer = new byte[1 << windowBits];

            ReadBlocks();
        }
예제 #2
0
        public LzxStream(Stream stream, int windowBits, int fileSize)
        {
            _bitStream        = new LzxBitStream(new BufferedStream(stream, 8192));
            _windowBits       = windowBits;
            _fileSize         = fileSize;
            _numPositionSlots = _windowBits * 2;
            _buffer           = new byte[1 << windowBits];

            ReadBlocks();
        }