# TarCompression

The outer stream wrapper of a TAR archive.

Enum 

`OfficeIMO.Archives`

**Namespace**

`OfficeIMO.Archives`

**Assembly**

`OfficeIMO.Archives`

**Source revision**

`12511d2fa560` with working tree changes

**Source**

[TarArchiveWriter.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Archives/TarArchiveWriter.cs#L9)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

The outer stream wrapper of a TAR archive.

## Inheritance

- Enum
- TarCompression

## Usage

Explore 7 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.

### Returned or exposed by 7

- Property [TarArchiveWriterOptions.Compression](/api/archives/officeimo-archives-tararchivewriteroptions/#property-compression)
- Field [TarCompression.BZip2](/api/archives/officeimo-archives-tarcompression/#field-bzip2)
- Field [TarCompression.GZip](/api/archives/officeimo-archives-tarcompression/#field-gzip)
- Field [TarCompression.Lz4](/api/archives/officeimo-archives-tarcompression/#field-lz4)
- Field [TarCompression.None](/api/archives/officeimo-archives-tarcompression/#field-none)
- Field [TarCompression.Xz](/api/archives/officeimo-archives-tarcompression/#field-xz)
- Field [TarCompression.Zstandard](/api/archives/officeimo-archives-tarcompression/#field-zstandard)

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

`public override bool Equals(object? obj)` [#](#method-equals-object)

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Inherited from Enum

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

`public override string ToString()` [#](#method-tostring)

Inherited from Enum

Returns

`string`

`public string ToString(string? format)` [#](#method-tostring-string)

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const TarCompression None` [#](#field-none)

[TarArchiveWriter.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Archives/TarArchiveWriter.cs#L11)

Plain TAR.

Value: `0`

`public const TarCompression GZip` [#](#field-gzip)

[TarArchiveWriter.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Archives/TarArchiveWriter.cs#L13)

One gzip member (.tar.gz).

Value: `1`

`public const TarCompression Zstandard` [#](#field-zstandard)

[TarArchiveWriter.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Archives/TarArchiveWriter.cs#L15)

One checksummed Zstandard frame (.tar.zst).

Value: `2`

`public const TarCompression Lz4` [#](#field-lz4)

[TarArchiveWriter.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Archives/TarArchiveWriter.cs#L17)

One LZ4 frame (.tar.lz4) with independent 64 KiB blocks and block and content checksums.

Value: `3`

`public const TarCompression BZip2` [#](#field-bzip2)

[TarArchiveWriter.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Archives/TarArchiveWriter.cs#L19)

One bzip2 stream (.tar.bz2).

Value: `4`

`public const TarCompression Xz` [#](#field-xz)

[TarArchiveWriter.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Archives/TarArchiveWriter.cs#L21)

One checksummed xz stream (.tar.xz).

Value: `5`

<!-- PowerForge markdown artifact sha256:9470B9F4BC99E9C61228A039E707565B79A2D0909A1B3025729E7FF8806EE993 -->
