Files
src/miniquake/crc.ml
- Package
miniquake.crc- Reachable
- Yes
Declarations
# block
function block(data, offset, count)
Implements the `block` operation for `miniquake.crc` (block).
| Parameter | Type | Default | Description |
|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
count | dynamic | — | Number of entries or units to process. |
View source
# CRC_Block
function CRC_Block(data, offset, count)
Compute crc block.
| Parameter | Type | Default | Description |
|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
count | dynamic | — | Number of entries or units to process. |
View source
# CRC_Init
inline function CRC_Init()
Compute crc init.
View source
# CRC_INIT_VALUE
const CRC_INIT_VALUE = 65535
Defines the crc init value value used by `miniquake.crc`.
View source
# CRC_POLYNOMIAL
const CRC_POLYNOMIAL = 4129
Defines the crc polynomial value used by `miniquake.crc`.
View source
# CRC_ProcessByte
function CRC_ProcessByte(crcValue, data)
crc.c uses a 256-entry lookup table. This bitwise form produces that exact non-reflected CCITT transition while retaining unsigned-short truncation.
| Parameter | Type | Default | Description |
|---|
crcValue | dynamic | — | The crc value input consumed by `CRC_ProcessByte`. |
data | dynamic | — | Input data consumed by the operation. |
View source
# CRC_Value
function CRC_Value(crcValue)
Compute crc value.
| Parameter | Type | Default | Description |
|---|
crcValue | dynamic | — | The crc value input consumed by `CRC_Value`. |
View source
# CRC_XOR_VALUE
const CRC_XOR_VALUE = 0
Defines the crc xor value value used by `miniquake.crc`.
View source
# processByte
function processByte(value, data)
Existing idiomatic aliases retained for already-ported callers.
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed by `processByte`. |
data | dynamic | — | Input data consumed by the operation. |
View source