Esempio n. 1
0
        protected override void Dispose(bool disposing)
        {
            // We mark the stream as disposed by clearing the base stream reference.
            // Note that we must keep the offset/length fields intact because our owner still needs them.
            mReader = null;

            base.Dispose(disposing);
        }
Esempio n. 2
0
 public DecodedArchiveSectionStream(Stream stream, ArchiveMetadata metadata, int index, PasswordStorage password)
 {
     mReader = new ArchiveSectionDecoder(stream, metadata, index, password);
 }
Esempio n. 3
0
 public DecodedArchiveSectionStream(Stream stream, ArchiveMetadata metadata, int index, PasswordStorage password)
 {
     mReader = new ArchiveSectionDecoder(stream, metadata, index, password);
 }
Esempio n. 4
0
 /// <summary>
 /// Creates a new iteration to unpack a sequence of streams from a decoded archive section.
 /// </summary>
 /// <param name="stream">A readable and seekable stream for the archive.</param>
 /// <param name="metadata">The metadata for the archive.</param>
 /// <param name="index">The decoder section index from the metadata which should be unpacked.</param>
 /// <param name="password">An optional password to unpack the archive content.</param>
 public DecodedSectionReader(Stream stream, ArchiveMetadata metadata, int index, PasswordStorage password)
 {
     mDecodedStream = new ArchiveSectionDecoder(stream, metadata, index, password);
     mMetadata = metadata;
     mDecoderSection = metadata.DecoderSections[index];
 }
Esempio n. 5
0
        protected override void Dispose(bool disposing)
        {
            // We mark the stream as disposed by clearing the base stream reference.
            // Note that we must keep the offset/length fields intact because our owner still needs them.
            mReader = null;

            base.Dispose(disposing);
        }
Esempio n. 6
0
 internal DecodedStream(ArchiveSectionDecoder stream, long length)
 {
     mReader = stream;
     mLength = length;
 }
Esempio n. 7
0
 /// <summary>
 /// Creates a new iteration to unpack a sequence of streams from a decoded archive section.
 /// </summary>
 /// <param name="stream">A readable and seekable stream for the archive.</param>
 /// <param name="metadata">The metadata for the archive.</param>
 /// <param name="index">The decoder section index from the metadata which should be unpacked.</param>
 /// <param name="password">An optional password to unpack the archive content.</param>
 public DecodedSectionReader(Stream stream, ArchiveMetadata metadata, int index, PasswordStorage password)
 {
     mDecodedStream  = new ArchiveSectionDecoder(stream, metadata, index, password);
     mMetadata       = metadata;
     mDecoderSection = metadata.DecoderSections[index];
 }
Esempio n. 8
0
 internal DecodedStream(ArchiveSectionDecoder stream, long length)
 {
     mReader = stream;
     mLength = length;
 }