fbpx
Welcome, Guest
Username: Password: Remember me
Share your code snippets, screen shots etc. here
  • Page:
  • 1

TOPIC: Compressor class donated by Nick Friend

Compressor class donated by Nick Friend 3 weeks 6 days ago #9067

  wriedmann's Avatar Topic Author wriedmann Offline Posts: 1567
Hello,

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.

Wolfgang

File Attachment:

File Name: CompressorClass.zip
File Size:5 KB
Wolfgang Riedmann
Meran, South Tyrol, Italy
This email address is being protected from spambots. You need JavaScript enabled to view it.
www.riedmann.it - docs.xsharp.it
Attachments:

Please Log in or Create an account to join the conversation.

Compressor class donated by Nick Friend 3 weeks 5 days ago #9083

  ic2's Avatar ic2 Offline Posts: 483
Hello Wolfgang,

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

Dick

Please Log in or Create an account to join the conversation.

Compressor class donated by Nick Friend 3 weeks 5 days ago #9085

  NickFriend's Avatar NickFriend Offline Posts: 193
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.

HTH

Nick

Please Log in or Create an account to join the conversation.

  • Page:
  • 1