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(); }
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(); }