Halyri - Häke  0.9.1
 All Classes Namespaces Functions Variables Enumerations Properties
CompressionHelper Class Reference

Class for static compression methods. More...

Static Public Member Functions

static byte[] CompressGZip (byte[] sourceData, bool useOptimalCompression)
 Compresses the provided bytearray using the GZip algorithm provided by System.IO.Compression library. More...
 
static byte[] DecompressGZip (byte[] sourceData)
 Decompresses the provided bytearray using the GZip algorithm provided by System.IO.Compression library. More...
 

Detailed Description

Class for static compression methods.

<author>Veli-Mikko Puupponen</author> NOTICE: IO.Compression-library will not work, if the solution has Active Config set to any CPU. For phone, this should be ARM and for emulator, x86.

Member Function Documentation

static byte [] CompressGZip ( byte[]  sourceData,
bool  useOptimalCompression 
)
static

Compresses the provided bytearray using the GZip algorithm provided by System.IO.Compression library.

Parameters
sourceDataData to be compressed
useOptimalCompressionTrue, if using optimal compression method, otherwise using fastest
Returns
GZip compressed byte data
static byte [] DecompressGZip ( byte[]  sourceData)
static

Decompresses the provided bytearray using the GZip algorithm provided by System.IO.Compression library.

Parameters
sourceDataData to be decompressed
Returns
GZip decompressed input byte data

The documentation for this class was generated from the following file: