Ejemplo n.º 1
0
        public Lzma2DecoderStream(Stream inputStream, byte prop, long limit)
        {
            mInputStream = inputStream;
            mLimit = limit;

            mDecoder = new LZMA.CLzma2Dec();
            mDecoder.Lzma2Dec_Construct();
            if (mDecoder.Lzma2Dec_Allocate(prop, LZMA.ISzAlloc.SmallAlloc) != LZMA.SZ_OK)
                throw new InvalidDataException();
            mDecoder.Lzma2Dec_Init();
        }
Ejemplo n.º 2
0
        public Lzma2DecoderStream(Stream inputStream, byte prop, long limit)
        {
            mInputStream = inputStream;
            mLimit       = limit;

            mDecoder = new LZMA.CLzma2Dec();
            mDecoder.Lzma2Dec_Construct();
            if (mDecoder.Lzma2Dec_Allocate(prop, LZMA.ISzAlloc.SmallAlloc) != LZMA.SZ_OK)
            {
                throw new InvalidDataException();
            }
            mDecoder.Lzma2Dec_Init();
        }