Products list

JurikSoft Remote Control Tools
version: 1.0.0

Download - 5 MB

Buy Now! (25$ USD)

JurikSoft Proxy Provider
version: 1.1

Download - 800 KB

Buy Now! (49$ USD)

JurikSoft Compression Library
version:1.1.0

Download - 800 KB

Buy Now! (49$ USD)

JurikSoft Folder Browser
version: 1.1

FREE

Download - 160 สม
(version with using compiler option
"Use MFC in a Static Library")

Download - 20 สม
(version with using compiler option
"Use MFC in a Shared DLL")

Author:
jurik@juriksoft.net

Technical support:
support@juriksoft.net

Info:
info@juriksoft.net

Sales questions:
sales@juriksoft.net


ICQ
55239911

 

JurikSoft Compression Library 1.1.0

Download - 800 KB
Buy Now! (49$ USD)

One copy (serial number) entitles to use this software product to one software developers team.

 

 

  • Introduction

JurikSoft Compression Library is a .NET component with a set of methods, which allow Compress array of bytes using lossless compression algorithms.

Current version of compression library include following compression algorithms: LZSS, Adaptive and Non-Adaptive Prefix Codes and Run Length Encoding algorithm.

JurikSoft Compression Library is a .NET DLL library which is very easy to use.

This .NET component was developed using .NET Framework versions 1.1 and Microsoft Visual Studio .NET 2003.

 

  • Samples of Code for the Use of JurikSoft Compression Library (in C#) to compress data from file:

// Initializes a new instance of the LZSS class with a compression parameters:
// 10 hash chains, use Prefix Codes compression algorithm, not use RLE and
// maximum data block up to 131072 bytes

JurikSoft.Compression.ICompression compressionObj = new JurikSoft.Compression.LZSS(10, true, true, false, 131072);

FileStream fileStream_DataFile = File.Open("test.dat");

byte [] byteArray_DataToCompress = new byte[fileStream_DataFile.Length], byte [] byteArray_CompressedData = null;

fileStream_DataFile.Read(byteArray_DataToCompress, 0, byteArray_DataToCompress.Length);

//Compress the data with adding MD5 hash check sum
byteArray_CompressedData = compressionObj.Compress(byteArray_DataToCompress, true);

fileStream_DataFile.Close();

 

  • Conclusion

In the final you has compressed data in byte array and can write byteArray_CompressedData array to file if need;