-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Peterson Fernandes edited this page Sep 11, 2026
·
4 revisions
Welcome to the ZArchiveSharp documentation. This guide covers everything you need to know about using ZArchiveSharp for archive creation, zstd compression, and batch processing.
- Getting-Started — Installation, prerequisites, and your first archive
- CLI-Reference — Command-line tool usage and options
- ZAR-Format — Archive format specification, structure, and design decisions
- Zstd-Compression — Compression levels, strategies, and tuning guide
- Seekable-Format — Seekable zstd framing (Foot + Head tables)
- API-Reference — Complete library API for all public types and methods
- Pipeline — Batch operations, progress reporting, and collision handling
- Benchmarks — Performance characteristics and optimization tips
- FAQ — Frequently asked questions and troubleshooting
ZArchiveSharp is a pure-C# port of the ZArchive 0.1.2 library. It provides:
- Archive format — Directory-tree archives with per-block zstd compression (64 KiB blocks)
- zstd codec — Complete RFC 8878 encoder and decoder (levels 1–22, all 9 strategies)
- Seekable format — zeekstd-compatible seekable zstd framing
- Pipeline — Batch pack/extract with progress, pause, cancellation, and collision policies
-
CLI tool —
zarcommand matchingzarchive.exebehavior
| Property | Value |
|---|---|
| Target frameworks |
net8.0, net9.0, net10.0
|
| Runtime dependencies | None (BCL only) |
| Unsafe code | None in the zstd path |
| Trimmable | Yes |
| AOT compatible | Yes |
| License | MIT |
ZArchiveSharp produces byte-identical output to:
- The original C++
zarchive.exe(ZArchive 0.1.2) - libzstd 1.5.7 (frozen reference)
- zeekstd (seekable format)
This is verified by 4171 tests including parity validation against native tools.
| Topic | Description |
|---|---|
| Installation | How to install ZArchiveSharp |
| Pack a Directory | Create your first archive |
| Extract an Archive | Extract archive contents |
| CLI Usage | Command-line tool reference |
| Compression Levels | Choosing the right level |
| Pipeline API | Batch operations |
| Error Handling | Exception types and handling |
ZArchiveSharp
Getting Started
Core Concepts
API
Advanced
Links