Ekona icon indicating copy to clipboard operation
Ekona copied to clipboard

Implement BIOS compressions

Open pleonex opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Implement converters that can decompress and compress binary data using the BIOS compression algorithms of NDS:

  • [ ] Implement LZSS compression
  • [ ] Implement BLZ (backward LZSS) compression
  • [ ] Implement Huffman (4-bits and 8-bits) compression
  • [ ] Implement RLE compression

Describe the solution you'd like A converter for each algorithm so that can compress a BinaryFormat into a new one on-memory (optionally with an additional argument to specify the output stream). A different converter to decompress.

Describe alternatives you've considered Calling external programs that already exists but it makes complex cross-platform support. Creating one single class for compressing and decompressing the same algorithm, but for single-responsible-principle and make things easier to understand, it's better one class per operation.

pleonex avatar Jul 25 '22 18:07 pleonex