Files
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.
| Parameter | Type | Default | Description |
|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |
count | dynamic | — | Number of items or units to process. |
View source
# CRC_Block
function CRC_Block(data, offset, count)
Return the crc block value.
| Parameter | Type | Default | Description |
|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |
count | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
crcValue | dynamic | — | crcValue value consumed by this operation. |
data | dynamic | — | Input data consumed by the operation. |
View source
# CRC_Value
inline function CRC_Value(crcValue)
Return the crc value.
| Parameter | Type | Default | Description |
|---|
crcValue | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
crcValue | dynamic | — | crcValue value consumed by this operation. |
data | dynamic | — | Input data consumed by the operation. |
View source