#decode #little #data #encodes #codec #fighter #lf2

bin+lib lf2_codec

Encodes and decodes Little Fighter 2 (LF2) data files

3 unstable releases

0.2.1 Sep 22, 2020
0.2.0 Sep 22, 2020
0.1.0 Jul 26, 2020

#2 in #fighter

25 downloads per month
Used in lf2_parse

Zlib license

11KB
179 lines

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.

No runtime deps