C# Class Orc.MediaSync.Shared.Helpers.Compression

显示文件 Open project: Offroadcode/MediaSync

Public Methods

Method Description
Compress ( byte bytes ) : byte[]

Compresses the given bytes using a gZip algorithm

CopyTo ( Stream src, Stream dest ) : void

Copies from one stream to another

Unzip ( byte bytes ) : byte[]

DeCompresses the given bytes using a gZip algorithm

Method Details

Compress() public static method

Compresses the given bytes using a gZip algorithm
public static Compress ( byte bytes ) : byte[]
bytes byte
return byte[]

CopyTo() public static method

Copies from one stream to another
public static CopyTo ( Stream src, Stream dest ) : void
src System.IO.Stream
dest System.IO.Stream
return void

Unzip() public static method

DeCompresses the given bytes using a gZip algorithm
public static Unzip ( byte bytes ) : byte[]
bytes byte
return byte[]