项目作者: Crauzer

项目描述 :
LZFSESharp is a .NET binding of the lzfse compression algorithm.
高级语言: C#
项目地址: git://github.com/Crauzer/LZFSESharp.git
创建时间: 2017-12-30T01:39:23Z
项目社区:https://github.com/Crauzer/LZFSESharp

开源协议:Other

下载


LZFSESharp

LZFSESharp is a .NET binding of the lzfse compression algorithm which is being developed by Apple.

Compatibility

The LZFSESharp project builds to .NET Framework 4.6.2.

Durning compilation, the lzfse.dll file will be moved to the build directory.

Usage:

  • Compression

  1. byte[] compressedBuffer = LZFSE.Compress(rawInputBuffer);

You will need to store the size of the Raw Uncompressed buffer in order for decompression to be optimal.


  • Decompression

  1. byte[] uncompressedBuffer = LZFSE.Decompress(compressedBuffer, rawSize [optional], decompressionSizeFactor [optional]);

If the method is provided a Raw Size then the inital size of the output buffer will be rawSize resulting in less memory usage.

If it is not provided a Raw Size, the initial size of the output buffer will be compressedBuffer.Length * decompressionSizeFactor. This results in very high memory usage as we can allocate more memory than needed.