A class to assist using the high performance LZO Compression library.

C# Wrapper for 32 and 64 bit LZO

You are looking at revision 5 of this page, which may be out of date. View the latest version.  

LZO is a portable lossless data compression library written in ANSI C.

I couldn't find a compiled 64-bit version for windows so I downloaded the source and compiled both the 32 bit and 64 bit versions:

Download now x86 x64

lzo-net is an existing sourceforge project that wraps the C LZO dll however it is very outdated - the lzo version in that project points at v1.08 and the latest is 2.06. That project is a single class LZOCompressor which handles the calls between your application and the C LZO library.*

I added/fixed a few things as LZOCompressor no longer worked with v2.06 of the LZO C libraries:

1) DllImport attributes needed fixing when calling from .NET 4
2) String memory cleanup issue
3) Added feature: Detects 32bit or 64bit and loads the correct C LZO dll.

A sample C# Application is available to download (838kb) which demonstrates using LZO from within either a 32bit or 64bit C# Application. This download is larger than you might expect because LZO C now depends on the VC++ Redistributable library msvcr100.dll which I've included in the download.

Happy compressing!

*I've emailed the owner of this project but haven't heard back as yet

Posted by: Wallace Turner
Last revised: 30 Nov, 2011 12:46 PM History
You are looking at revision 5 of this page, which may be out of date. View the latest version.

Comments

No comments yet. Be the first!

No new comments are allowed on this post.