C# Class SharpMod.CRC32

A class which exposes the server CRC32 functionality
Exibir arquivo Open project: txdv/sharpmod

Public Methods

Method Description
CRC32 ( ) : System

Creates an instance of the CRC32 class

CRC32 ( IntPtr ptr ) : System

Creates an instance of the CRC32 class, the pointer points to the spot where the data is accumulated

Final ( ) : long

Finalizes the CRC32 algorithm and returns a value

Process ( IntPtr ptr, int size ) : void

Processes a memory segment

Process ( char ch ) : void

Processes a character

Process ( int i ) : void

Process an Integer

Process ( long l ) : void

Process a long

Process ( string str ) : void

Method Details

CRC32() public method

Creates an instance of the CRC32 class
public CRC32 ( ) : System
return System

CRC32() public method

Creates an instance of the CRC32 class, the pointer points to the spot where the data is accumulated
public CRC32 ( IntPtr ptr ) : System
ptr System.IntPtr /// A pointer to an accumulation spot ///
return System

Final() public method

Finalizes the CRC32 algorithm and returns a value
public Final ( ) : long
return long

Process() public method

Processes a memory segment
public Process ( IntPtr ptr, int size ) : void
ptr System.IntPtr /// A pointer to the memory chunk ///
size int /// the size of the memory ///
return void

Process() public method

Processes a character
public Process ( char ch ) : void
ch char /// A character to process ///
return void

Process() public method

Process an Integer
public Process ( int i ) : void
i int /// An integer to process ///
return void

Process() public method

Process a long
public Process ( long l ) : void
l long /// A long ///
return void

Process() public method

public Process ( string str ) : void
str string
return void