gfarch

Crates.iogfarch
lib.rsgfarch
version0.2.3
sourcesrc
created_at2024-11-24 03:58:51.233405
updated_at2024-11-27 21:10:00.378301
descriptiongfarch is a Rust crate for Good-Feel's GoodFeelArchives.
homepage
repositoryhttps://github.com/Swiftshine/gfarch-rs
max_upload_size
id1458951
size21,257
Swift (Swiftshine)

documentation

README

GfArch

Rust crate for handling Good-Feel's GfArch files.

Capabilities

Archive Creation

  • Archives with Byte Pair Encoding
  • Archives with LZ10

Archive Extraction

  • Archives with Byte Pair Encoding
  • Archives with LZ10

Usage

Archive Creation

    // "archive_1" is now a GoodFeelArchive
    let archive_1 = gfarch::pack_from_files(
        &files,
        Version::V3,
        CompressionType::BPE,
        GFCPOffset::Default
    );

    // "archive_2" is now also a GoodFeelArchive
    let archive_2 = gfarch::pack_from_bytes(
        &byte_vectors,
        &filenames,
        Version::V3,
        CompressionType::BPE,
        GFCPOffset::Default
    );

Archive Extraction

    let archive = fs::read("my_file.gfa")?;
    // "files" is now a collection of file data and filenames
    let files = gfarch::extract(&archive)?;
Commit count: 19

cargo fmt