Is there a public implemention of LZSS compression in C# or that can be used in C#? [closed]

与世无争的帅哥 提交于 2019-12-10 18:48:35

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!