Crates.io | lf2_codec |
lib.rs | lf2_codec |
version | 0.2.1 |
source | src |
created_at | 2020-07-26 09:10:30.749568 |
updated_at | 2020-09-22 23:59:14.477119 |
description | Encodes and decodes Little Fighter 2 (LF2) data files |
homepage | https://github.com/azriel91/lf2_codec |
repository | https://github.com/azriel91/lf2_codec |
max_upload_size | |
id | 269690 |
size | 11,603 |
Encodes and decodes Little Fighter 2 (LF2) data files.
LF2 codec can be used as an application or a library.
# Installation
cargo install lf2_codec
# Running
lf2_codec decode character.dat > character.txt
lf2_codec encode character.txt > character.dat
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);
Licensed the Zlib license.
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.