3 unstable releases
0.2.1 | Sep 22, 2020 |
---|---|
0.2.0 | Sep 22, 2020 |
0.1.0 | Jul 26, 2020 |
#2 in #fighter
Used in lf2_parse
11KB
179 lines
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.