Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Conversation

@pleonex
Copy link
Contributor

@pleonex pleonex commented Oct 13, 2024

Implement compression and decompression for some of the BIOS built-in compressions:

  • LZSS: decompress and compress
  • RLE: decompress

TODO:

  • Unit tests for RLE
  • Compression for RLE
  • Update documentation (and README)

Part of #29

Quality check list

  • Related code has been tested automatically or manually
  • Related documentation is updated
  • I acknowledge I have read and filled this checklist and accept the
    developer certificate of origin

Acceptance criteria

  • Compress and decompress LZSS files.
  • Compress and decompress RLE files

Follow-up work

  • Implement Huffman compressions
  • Implement BLZ compressions
  • Implement LZ11 compression

Example

// Compress a Stream
var encoder = new LzssEncoder();
using Stream outputStream = encoder.Convert(inputStream);

// Or pass the output in the constructor
new LzssEncoder(outputStream).Convert(inputStream);

Same for the LZSS decompressor LzssDecoder or the RLE decompressor RleDecoder.

@pleonex pleonex added the enhancement New feature or request label Oct 13, 2024
@pleonex pleonex self-assigned this Oct 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants