Encodes and decodes Little Fighter 2 (LF2) data files.
LF2 codec can be used as an application or a library.
```sh
cargo install lf2_codec
lf2codec decode character.dat > character.txt lf2codec encode character.txt > character.dat ```
```rust use lf2_codec::DataDecoder;
let decodedbytes = DataDecoder::decodepath("character.dat")?; // or // let characterdatreader = BufReader::new(File::open("character.dat")?); // let decodedbytes = DataDecoder::decode(characterdat_reader)?;
let decoded = String::fromutf8(decodedbytes)?;
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.