Photon Fusion 2.0.3

Static Public Member Functions | List of all members
CRC64 Class Reference

Provides methods to compute CRC64 checksums. More...

Static Public Member Functions

static unsafe UInt64 Compute (Byte *data, Int32 length)
 Computes the CRC64 checksum for the given data. More...
 
static unsafe UInt64 Compute (UInt64 crc, Byte *data, Int32 offset, Int32 length)
 Computes the CRC64 checksum for the given data with an initial CRC value and offset. More...
 

Detailed Description

Provides methods to compute CRC64 checksums.

Member Function Documentation

◆ Compute() [1/2]

static unsafe UInt64 Compute ( Byte *  data,
Int32  length 
)
static

Computes the CRC64 checksum for the given data.

Parameters
dataA pointer to the data to compute the checksum for.
lengthThe length of the data.
Returns
The computed CRC64 checksum.

◆ Compute() [2/2]

static unsafe UInt64 Compute ( UInt64  crc,
Byte *  data,
Int32  offset,
Int32  length 
)
static

Computes the CRC64 checksum for the given data with an initial CRC value and offset.

Parameters
crcThe initial CRC value.
dataA pointer to the data to compute the checksum for.
offsetThe offset in the data to start computing the checksum from.
lengthThe length of the data.
Returns
The computed CRC64 checksum.