Example #1
0
 public override void Dispose()
 {
     mDecoder?.Dispose();
     mDecoder = null;
     mOutput?.Dispose();
     mOutput = null;
     mBuffer = null;
 }
Example #2
0
 public override void Dispose()
 {
     mDecoder?.Dispose();
     mDecoder = null;
     mOutput?.Dispose();
     mOutput = null;
     mBuffer = null;
 }
Example #3
0
        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;
        }
Example #4
0
        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;
        }