mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-07-12 20:17:05 +00:00
32 lines
1.0 KiB
C#
32 lines
1.0 KiB
C#
using System;
|
|
using SharpCompress.Common;
|
|
|
|
namespace SharpCompress.Readers;
|
|
|
|
public class ReaderOptions : OptionsBase
|
|
{
|
|
public const int DefaultBufferSize = 0x10000;
|
|
|
|
/// <summary>
|
|
/// Look for RarArchive (Check for self-extracting archives or cases where RarArchive isn't at the start of the file)
|
|
/// </summary>
|
|
public bool LookForHeader { get; set; }
|
|
|
|
public string? Password { get; set; }
|
|
|
|
public bool DisableCheckIncomplete { get; set; }
|
|
|
|
public int BufferSize { get; set; } = DefaultBufferSize;
|
|
|
|
/// <summary>
|
|
/// Provide a hint for the extension of the archive being read, can speed up finding the correct decoder. Should be without the leading period in the form like: tar.gz or zip
|
|
/// </summary>
|
|
public string? ExtensionHint { get; set; }
|
|
|
|
/// <summary>
|
|
/// An optional progress reporter for tracking extraction operations.
|
|
/// When set, progress updates will be reported as entries are extracted.
|
|
/// </summary>
|
|
public IProgress<ProgressReport>? Progress { get; set; }
|
|
}
|