lf2_codec 0.2.1

Encodes and decodes Little Fighter 2 (LF2) data files
Documentation
  • Coverage
  • 100%
    15 out of 15 items documented1 out of 6 items with examples
  • Size
  • Source code size: 11.07 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.4 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • azriel91/lf2_codec
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • azriel91

docs crates.io

LF2 Codec

Encodes and decodes Little Fighter 2 (LF2) data files.

Usage

LF2 codec can be used as an application or a library.

Application

# Installation
cargo install lf2_codec

# Running
lf2_codec decode character.dat > character.txt
lf2_codec encode character.txt > character.dat

Library

use lf2_codec::DataDecoder;

let decoded_bytes = DataDecoder::decode_path("character.dat")?;
// or
// let character_dat_reader = BufReader::new(File::open("character.dat")?);
// let decoded_bytes = DataDecoder::decode(character_dat_reader)?;

let decoded = String::from_utf8(decoded_bytes)?;

println!("{}", decoded);

License

Licensed the Zlib license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.