コード例 #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);
        }
コード例 #2
0
 public DecodedArchiveSectionStream(Stream stream, ArchiveMetadata metadata, int index, PasswordStorage password)
 {
     mReader = new ArchiveSectionDecoder(stream, metadata, index, password);
 }
コード例 #3
0
 public DecodedArchiveSectionStream(Stream stream, ArchiveMetadata metadata, int index, PasswordStorage password)
 {
     mReader = new ArchiveSectionDecoder(stream, metadata, index, password);
 }
コード例 #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];
 }
コード例 #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);
        }
コード例 #6
0
 internal DecodedStream(ArchiveSectionDecoder stream, long length)
 {
     mReader = stream;
     mLength = length;
 }
コード例 #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];
 }
コード例 #8
0
 internal DecodedStream(ArchiveSectionDecoder stream, long length)
 {
     mReader = stream;
     mLength = length;
 }