Struct ArchiveFormatInfo
The result of probing a file or stream for its archive format. Carries everything SharpSevenZipExtractor needs to open the archive, so a caller that has already probed the format does not pay for signature detection a second time.
Implements
Inherited Members
Namespace: SharpSevenZip
Assembly: SharpSevenZip.dll
Syntax
public readonly record struct ArchiveFormatInfo : IEquatable<ArchiveFormatInfo>
Properties
| Edit this page View SourceFormat
Gets the detected archive format, or None when the input is not a recognised archive.
Declaration
public InArchiveFormat Format { get; }
Property Value
| Type | Description |
|---|---|
| InArchiveFormat |
IsArchive
Gets a value indicating whether a recognised archive format was found.
Declaration
public bool IsArchive { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsExecutable
Gets a value indicating whether the input is a PE executable (which may, but need not, be a self-extracting archive).
Declaration
public bool IsExecutable { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Offset
Gets the byte offset at which the archive content begins. Non-zero for self-extracting or otherwise embedded archives.
Declaration
public int Offset { get; }
Property Value
| Type | Description |
|---|---|
| int |