11 comments
@neauoire @dichotomiker you should put a note that the encoder in uxn-utils is unsafe and the one from Uxn32 should be used for real software @cancel @dichotomiker sure, would you like to make a standalone file in the repo that I can link people to? @cancel I mean with build instructions and main(), so people can build it without too much fussing with it as a library. @neauoire nice :) The reason I haven't made an example standalone program in C for it in the Uxn32 repo is that none of the Uxn32 code currently uses the C standard library, and doing a cross-platform cmd line program that does file operations would require to suddenly switch to using it. Not the end of the world but… well maybe I'll do it eventually. @cancel ah! I didn't know that. Good to know, yeah I'll bring the ref implementation and make a README for it! @neauoire sorry, I didn't document how to use the streaming decompressor yet. (Having to swap hard drives to work on Uxn32 is turning out to be pretty inconvenient...) |
@dichotomiker @cancel Here's the encoder and decoder so you can try with an example of your own to see where it fails.
https://git.sr.ht/~rabbits/uxn-utils/tree/main/item/cli/lz/ulzenc.c
https://git.sr.ht/~rabbits/uxn-utils/tree/main/item/cli/lz/ulzdec.c