ArchiveFormatInfo Struct
The format of an archive or a compressed stream, as detected by ArchiveFile.DetectFormat.
public readonly struct ArchiveFormatInfo : IEquatable<ArchiveFormatInfo>- Implements
Constructors
| Name | Description |
|---|---|
| ArchiveFormatInfo(ArchiveFormat, CompressionFormat) | The format of an archive or a compressed stream, as detected by ArchiveFile.DetectFormat. |
ArchiveFormatInfo(ArchiveFormat, CompressionFormat)
The format of an archive or a compressed stream, as detected by ArchiveFile.DetectFormat.
public ArchiveFormatInfo(ArchiveFormat Format, CompressionFormat CompressionFormat)Parameters
FormatArchiveFormat- The format of the archive, or
ArchiveFormat.Unknownwhen the data are not an archive (a compressed file that is not a tar archive, or unknown data). CompressionFormatCompressionFormat- The compression around the archive or the data (the gzip of a .tar.gz).
Properties
| Name | Description |
|---|---|
| CompressionFormat | The compression around the archive or the data (the gzip of a .tar.gz). |
| Format | The format of the archive, or ArchiveFormat.Unknown when the data are not an archive (a compressed file that is not a tar archive, or unknown data). |
| SupportsForwardOnlyReading | Gets a value indicating whether ArchiveReader.Create can read the data (every archive format but 7z, which needs to seek). |
| SupportsRandomAccess | Gets a value indicating whether ArchiveFile.Open can open the data. |
CompressionFormat
ArchiveFormatInfo.csThe compression around the archive or the data (the gzip of a .tar.gz).
public CompressionFormat CompressionFormat { get; init; }Property value
Format
ArchiveFormatInfo.csThe format of the archive, or ArchiveFormat.Unknown when the data are not an archive (a compressed file that is not a tar archive, or unknown data).
public ArchiveFormat Format { get; init; }Property value
SupportsForwardOnlyReading
ArchiveFormatInfo.csGets a value indicating whether ArchiveReader.Create can read the data (every archive format but 7z, which needs to seek).
public bool SupportsForwardOnlyReading { get; }Property value
SupportsRandomAccess
ArchiveFormatInfo.csGets a value indicating whether ArchiveFile.Open can open the data.
public bool SupportsRandomAccess { get; }Property value
Methods
| Name | Description |
|---|---|
| Deconstruct(ArchiveFormat, CompressionFormat) | |
| Equals(ArchiveFormatInfo) | |
| Equals(object) | |
| GetHashCode() | |
| ToString() |
Deconstruct(ArchiveFormat, CompressionFormat)
public void Deconstruct(out ArchiveFormat Format, out CompressionFormat CompressionFormat)Parameters
FormatArchiveFormatCompressionFormatCompressionFormat
No documentation is available.
Equals overloads
Equals(ArchiveFormatInfo)
public bool Equals(ArchiveFormatInfo other)No documentation is available.
Equals(object)
GetHashCode()
ToString()
Operators
| Name | Description |
|---|---|
| operator ==(ArchiveFormatInfo, ArchiveFormatInfo) | |
| operator !=(ArchiveFormatInfo, ArchiveFormatInfo) |
operator ==(ArchiveFormatInfo, ArchiveFormatInfo)
public static bool operator ==(ArchiveFormatInfo left, ArchiveFormatInfo right)No documentation is available.
operator !=(ArchiveFormatInfo, ArchiveFormatInfo)
public static bool operator !=(ArchiveFormatInfo left, ArchiveFormatInfo right)No documentation is available.