Compressor class donated by Nick Friend

Public forum to share code snippets, screen shorts, experiences, etc.
Post Reply
User avatar
Posts: 3679
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Compressor class donated by Nick Friend

Post by wriedmann »


please find attached a zip file with both a viaef export file for XIDE and a prg file to use with Visual Studio.

This code was donated by Nick Friend, and translated to X# by myself.
I have left the original C# code as comment in the file.

(4.66 KiB) Downloaded 98 times
Wolfgang Riedmann
Meran, South Tyrol, Italy -
Posts: 1819
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Compressor class donated by Nick Friend

Post by ic2 »

Hello Wolfgang,

What does it do? Do you maybe have some lines of code that shows how it can be used?

Posts: 248
Joined: Fri Oct 14, 2016 7:09 am

Compressor class donated by Nick Friend

Post by NickFriend »

Hi Dick,

It's just a dead simple class that takes most types of info... string, object, stream, byte array... and returns it as a compressed byte array that you can eg. store in a byte[] field in a database.

We use it for compressing text documents, xml info, long strings, etc. before storing them. Them when you retrieve you just use the corresponding DecompressXXX method to get back to the original type.

I offered it because I saw Wolfgang doing something similar/related with his generic serialisation class.


Post Reply