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); }
public DecodedArchiveSectionStream(Stream stream, ArchiveMetadata metadata, int index, PasswordStorage password) { mReader = new ArchiveSectionDecoder(stream, metadata, index, password); }
/// <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]; }
internal DecodedStream(ArchiveSectionDecoder stream, long length) { mReader = stream; mLength = length; }