ArchiveReadOptions
OfficeIMO.Archives
Finite limits for verified in-memory archive member reads.
Inheritance
- object
- ArchiveReadOptions
Usage
Explore 17 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters 17
- Method ArchiveReader.InspectRar5
- Method ArchiveReader.InspectRar5Volumes
- Method ArchiveReader.ListRar5
- Method ArchiveReader.ListSevenZip
- Method ArchiveReader.ListTar
- Method ArchiveReader.ReadRar5
- Method ArchiveReader.ReadRar5Volumes
- Method ArchiveReader.ReadSevenZip
- Method ArchiveReader.ReadTar
- Method ArchiveReader.ReadZip
- Method GZipArchive.Decompress
- Method LzipArchive.Decompress
- Method XzArchive.Decompress
- Method ZstandardArchive.Decompress
- Method ZstandardArchive.DecompressWithDictionary
- Method ZstandardDictionary.Load
- Method ZstandardDictionary.LoadRaw
Constructors
public ArchiveReadOptions() #Inherited Methods
Properties
public ArchiveOperationBudget? OperationBudget { get; set; } #Optional cumulative budget shared with related and nested archive operations.
public int? ZipLegacyCodePage { get; set; } #Explicit code page for unflagged non-ASCII ZIP names. Null retains strict ASCII/UTF-8 admission; the UTF-8 flag always takes precedence. No host-locale inference occurs.
public string? ZipPassword { get; set; } #Password for encrypted ZIP members (traditional ZipCrypto and WinZip AES), encoded as UTF-8. Null leaves encrypted members unreadable: they raise ArchivePasswordException when opened.
public long MaxInputBytes { get; set; } #Maximum compressed input bytes, including unselected members. Defaults to 64 MiB. Nonseekable input is snapshotted first, within this limit; depending on the reader the snapshot stays in memory, bounded by Int32.MaxValue, or moves to a temporary file beyond 8 MiB.
public int MaxEntryCount { get; set; } #Maximum physical members, including directories and unselected files.
public long MaxEntryBytes { get; set; } #Maximum declared size of any member, selected or not. Defaults to 16 MiB. Selected in-memory members are also bounded by Int32.MaxValue.
public long MaxExpandedBytes { get; set; } #Maximum expanded data, including siblings in a selected solid folder. Defaults to 64 MiB.
public long MaxDecompressionWorkBytes { get; set; } #Maximum decompression work for 7z, Zstandard, xz and lzip. Zstandard charges each block before decoding it: its input plus its largest possible output (the block maximum for a compressed block), at least 4 KiB per block. It also charges at least 4 KiB per skippable frame or its full size when larger, the dictionary copied into every frame that uses one, and the history copied when it grows or when a long window slides. xz and lzip charge every decoded byte, 68 KiB before each block or member decoder is created, each reset of the LZMA models, 4 KiB per xz stream and the xz stream padding they scan. Defaults to 2 GiB.
public long MaxWindowBytes { get; set; } #Maximum history window or dictionary a compressed stream may declare, checked before any history is allocated. Defaults to 64 MiB. For Zstandard that covers zstd's default parameters at levels up to 19; levels 20 to 22 with --ultra, and --long or an explicit windowLog, can declare 128 MiB or more and need a higher limit. It applies to the window descriptor, to the declared content size of a single-segment frame, which is that frame's window, and to the content of a supplied dictionary. Each frame starts with a buffer for its dictionary and two blocks. For xz and lzip it applies to each block's LZMA2 dictionary and each member's LZMA dictionary; the presets up to xz -9 (64 MiB) and lzip -9 (32 MiB) fit the default. History grows towards the window only as output is produced.
public int MaxPathLength { get; set; } #Maximum characters in an authored relative member path.
public Func<string, bool>? IncludeFile { get; set; } #Optional selector receiving each normalized relative file path once. All members still undergo metadata, path and collision validation.