# ArArchiveWriter

Writes deterministic ordinary ar archives with one flat set of files. Long names use BSD inline name records.

Class 

`OfficeIMO.Archives`

**Namespace**

`OfficeIMO.Archives`

**Assembly**

`OfficeIMO.Archives`

**Source revision**

`12511d2fa560` with working tree changes

**Source**

[ArArchiveWriter.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Archives/ArArchiveWriter.cs#L20)

**Modifiers**

static

Writes deterministic ordinary ar archives with one flat set of files. Long names use BSD inline name records.

## Inheritance

- object
- ArArchiveWriter

## Remarks

Output contains no linker index. The bytes of each file are stored without compression or checksums.

Filter members 

Show inherited

## Methods

Create 2 overloads

`public static void Create(Stream destination, IEnumerable<ArchiveWriteEntry> entries, ArArchiveWriterOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-create-io-stream-collections-generic-ienumerable-officeimo-archives-archivewriteentry-officeimo-archives-ararchivewriteroptions-threading-cancellationtoken)

[ArArchiveWriter.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Archives/ArArchiveWriter.cs#L20)

Writes to the current position of a writable stream and leaves it open. The stream need not seek. Member preparation finishes before the first destination write. An output I/O failure can leave a partial result.

Parameters

**destination System.IO.Stream required**

**entries System.Collections.Generic.IEnumerable<OfficeIMO.Archives.ArchiveWriteEntry> required**

**options OfficeIMO.Archives.ArArchiveWriterOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

`public static void Create(string destinationPath, IEnumerable<ArchiveWriteEntry> entries, ArArchiveWriterOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-create-string-collections-generic-ienumerable-officeimo-archives-archivewriteentry-officeimo-archives-ararchivewriteroptions-threading-cancellationtoken)

[ArArchiveWriter.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Archives/ArArchiveWriter.cs#L25)

Atomically writes a new ar archive. An existing file is not overwritten.

Parameters

**destinationPath string required**

**entries System.Collections.Generic.IEnumerable<OfficeIMO.Archives.ArchiveWriteEntry> required**

**options OfficeIMO.Archives.ArArchiveWriterOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

## Inherited Methods

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

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from object

Returns

`int`

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

Inherited from object

Returns

`Type`

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

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:149115340D20B498BC99EC0D0F3A283D20497A6F85568330DC72EF78E8B7E3B6 -->
