lf2_codec

Crates.iolf2_codec
lib.rslf2_codec
version0.2.1
sourcesrc
created_at2020-07-26 09:10:30.749568
updated_at2020-09-22 23:59:14.477119
descriptionEncodes and decodes Little Fighter 2 (LF2) data files
homepagehttps://github.com/azriel91/lf2_codec
repositoryhttps://github.com/azriel91/lf2_codec
max_upload_size
id269690
size11,603
Azriel Hoh (azriel91)

documentation

https://docs.rs/lf2_codec

README

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.

Commit count: 19

cargo fmt