MiniQuake2

src/miniquake2/qcommon/crc.ml

Provides miniquake2 qcommon crc facilities for this project.

Package
miniquake2.qcommon.crc
Reachable
Yes

Declarations

block

function block(data, offset, count)

Return the block value.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset at which processing starts.
countdynamic—Number of items or units to process.

View source

CRC_Block

function CRC_Block(data, offset, count)

Return the crc block value.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset at which processing starts.
countdynamic—Number of items or units to process.

View source

CRC_Init

inline function CRC_Init()

Initialize crc.

View source

CRC_INIT_VALUE

const CRC_INIT_VALUE = 65535

Defines the crc init value constant used by the miniquake2 qcommon crc module.

View source

CRC_POLYNOMIAL

const CRC_POLYNOMIAL = 4129

Defines the crc polynomial constant used by the miniquake2 qcommon crc module.

View source

CRC_ProcessByte

function CRC_ProcessByte(crcValue, data)

crc.c uses a table; this bitwise transition is the same non-reflected CRC-CCITT operation and keeps the unsigned-short truncation explicit.

ParameterTypeDefaultDescription
crcValuedynamic—crcValue value consumed by this operation.
datadynamic—Input data consumed by the operation.

View source

CRC_Value

inline function CRC_Value(crcValue)

Return the crc value.

ParameterTypeDefaultDescription
crcValuedynamic—crcValue value consumed by this operation.

View source

CRC_XOR_VALUE

const CRC_XOR_VALUE = 0

Defines the crc xor value constant used by the miniquake2 qcommon crc module.

View source

processByte

function processByte(crcValue, data)

Process byte.

ParameterTypeDefaultDescription
crcValuedynamic—crcValue value consumed by this operation.
datadynamic—Input data consumed by the operation.

View source