/// <summary> /// Initializes a new instance of the <see cref="CatalogEntryStream"/> class. /// </summary> /// <param name="entry">The catalog entry.</param> /// <param name="length">The stream length.</param> public CatalogEntryStream(CatalogEntry entry, long length) : base() { this.Entry = entry; this.stream = new MemoryStream(); this.SetLength(length); }
/// <summary> /// Initializes a new instance of the <see cref="CatalogEntryStream"/> class. /// </summary> /// <param name="entry">The catalog entry.</param> /// <param name="stream">The stream the current instance is being built from.</param> public CatalogEntryStream(CatalogEntry entry, Stream stream) : base() { this.Entry = entry; this.stream = stream; }