Debian Codegraph @

/

debian rust-ppmd-rust 1.2.1-1debian librust-ppmd-rust-dev debian librust-ppmd-rust+default-dev debian librust-ppmd-rust+unstable-tagged-offsets-dev debian librust-ppmd-rust-1-dev debian librust-ppmd-rust-1+default-dev debian librust-ppmd-rust-1+unstable-tagged-offsets-dev debian librust-ppmd-rust-1.2-dev debian librust-ppmd-rust-1.2+default-dev debian librust-ppmd-rust-1.2+unstable-tagged-offsets-dev debian librust-ppmd-rust-1.2.1-dev debian librust-ppmd-rust-1.2.1+default-dev debian librust-ppmd-rust-1.2.1+unstable-tagged-offsets-dev cargo ppmd-rust 1.2.1 debianjsonmakefilemarkdownrustrustrust-c-abishelltomlyaml 37 files · 767 symbols
View dependency graph

Depends on

  • dh-cargo (dh-sequence-cargo)
  • cargo, debhelper-compat, libstd-rust-dev, rustc
README (full)

PPMd in native Rust

Crate Documentation

PPMd compression / decompression. It's a port of the PPMd C-code from 7-Zip to Rust.

The following variants are provided:

  • The PPMd7 (PPMdH) as used by the 7z archive format
  • The PPMd8 (PPMdI rev.1) as used by the zip archive format

Notice

There are two ways to properly bound the uncompressed data:

  1. Save the uncompressed size along the compressed data and use std::io::Read::read_exact() to read the data (this is what is used in the 7z archive format).
  2. Encode an end marker by calling finish(true) on the encoder when finishing the encoder process. You can then use std::io::Read::read_to_end() to read the data. You are of course free to also use the std::io::Read::read_exact() if you have stored the uncompressed data size (this is what is used in the zip archive format).

Failing to do so will result in garbage symbols at the end of the actual data.

Acknowledgement

This port is based on the 7zip version of PPMd by Igor Pavlov, which in turn was based on the PPMd var.H (2001) / PPMd var.I (2002) code by Dmitry Shkarin. The carryless range coder of PPMd8 was originally written by Dmitry Subbotin (1999).

License

The code in this crate is in the public domain as the original code by their authors.

dir .github/
dir debian/
dir src/
dir tests/
file .cargo_vcs_info.json
file .gitattributes
file .gitignore
file CHANGELOG.md
file Cargo.lock
file Cargo.toml
file Cargo.toml.orig
file README.md
file rustfmt.toml