C# Class Server.Network.Compression

Handles outgoing packet compression for the network.
Mostrar archivo Open project: Grimoric/RunUO.T2A Class Usage Examples

Public Properties

Property Type Description
Compressor ICompressor

Public Methods

Method Description
Compress ( byte input, int offset, int count, int &length ) : byte[]
Pack ( byte dest, int &destLength, byte source, int sourceLength ) : ZLibError
Pack ( byte dest, int &destLength, byte source, int sourceLength, ZLibQuality quality ) : ZLibError
Unpack ( byte dest, int &destLength, byte source, int sourceLength ) : ZLibError

Private Methods

Method Description
Compress ( byte input, int length, byte &output, int &outputLength ) : void
Compression ( ) : System

Method Details

Compress() public static method

public static Compress ( byte input, int offset, int count, int &length ) : byte[]
input byte
offset int
count int
length int
return byte[]

Pack() public static method

public static Pack ( byte dest, int &destLength, byte source, int sourceLength ) : ZLibError
dest byte
destLength int
source byte
sourceLength int
return ZLibError

Pack() public static method

public static Pack ( byte dest, int &destLength, byte source, int sourceLength, ZLibQuality quality ) : ZLibError
dest byte
destLength int
source byte
sourceLength int
quality ZLibQuality
return ZLibError

Unpack() public static method

public static Unpack ( byte dest, int &destLength, byte source, int sourceLength ) : ZLibError
dest byte
destLength int
source byte
sourceLength int
return ZLibError

Property Details

Compressor public_oe static_oe property

public static ICompressor Compressor
return ICompressor