问题
I'm looking for LZSS for decoding some packets from a game engine. If anyone could point me to a library I would be extremely happy. Thanks!
回答1:
You can call on the Allegro Library (open source library in C developed for game development). It contains LZSS decoding and is callable from C#.
Or you can also look at: LZSS.c and port it over to C#, or compile it into a basic C library and then call it from C#.
回答2:
Here is an example of class that compresses/decompresses LZSS in the format used by the 3DS: http://3dsexplorer.googlecode.com/svn-history/r8/trunk/3DSExplorer/LZSS.cs
Another implementation, only decompress (requires you to know output size): http://pastebin.com/gNSc7iSi
来源:https://stackoverflow.com/questions/2769047/is-there-a-public-implemention-of-lzss-compression-in-c-sharp-or-that-can-be-use