public override void Dispose() { mDecoder?.Dispose(); mDecoder = null; mOutput?.Dispose(); mOutput = null; mBuffer = null; }
public Lzma2ArchiveDecoder(ImmutableArray <byte> settings, long length) { System.Diagnostics.Debug.Assert(!settings.IsDefault && settings.Length == 1 && length >= 0); mDecoder = new LZMA2.Decoder(new LZMA2.DecoderSettings(settings[0])); mOutput = new OutputStream(this); mBuffer = new byte[4 << 10]; // TODO: We shouldn't have to use a buffer here. Let the input stream submit directly into the decoder. mLength = length; }
public Lzma2ArchiveDecoder(ImmutableArray<byte> settings, long length) { System.Diagnostics.Debug.Assert(!settings.IsDefault && settings.Length == 1 && length >= 0); mDecoder = new LZMA2.Decoder(new LZMA2.DecoderSettings(settings[0])); mOutput = new OutputStream(this); mBuffer = new byte[4 << 10]; // TODO: We shouldn't have to use a buffer here. Let the input stream submit directly into the decoder. mLength = length; }