MiniQuake

src/miniquake/crc.ml

Package
miniquake.crc
Reachable
Yes

Declarations

block

function block(data, offset, count)

Implements the `block` operation for `miniquake.crc` (block).

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.
countdynamic—Number of entries or units to process.

View source

CRC_Block

function CRC_Block(data, offset, count)

Compute crc block.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.
countdynamic—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.

ParameterTypeDefaultDescription
crcValuedynamic—The crc value input consumed by `CRC_ProcessByte`.
datadynamic—Input data consumed by the operation.

View source

CRC_Value

function CRC_Value(crcValue)

Compute crc value.

ParameterTypeDefaultDescription
crcValuedynamic—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.

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `processByte`.
datadynamic—Input data consumed by the operation.

View source