# bytesCrc
function bytesCrc(data)Return bytes crc derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
src/miniquake/artifact_compat.mlminiquake/crc.ml as crc → src/miniquake/crc.mlminiquake/native.ml as native → src/miniquake/native.mlfunction bytesCrc(data)Return bytes crc derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
function bytesEqual(left, right)Assert exact equality and report both values on failure.
| Parameter | Type | Default | Description |
|---|---|---|---|
left | dynamic | — | The left input consumed by `bytesEqual`. |
right | dynamic | — | The right input consumed by `bytesEqual`. |
const CONTRACT_TEXT = "artifact-compat|demo-protocol15|retail-demos=3|save-version=5|save-roundtrip|deterministic-evidence"Defines the contract text value used by `miniquake.artifact_compat`.
function contractVector()Implements the `contractVector` operation for `miniquake.artifact_compat` (contract vector).
function demoSummary(recording, report, sourceBytes)Return demo summary derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
recording | dynamic | — | The recording input consumed by `demoSummary`. |
report | dynamic | — | The report input consumed by `demoSummary`. |
sourceBytes | dynamic | — | Byte data consumed by the operation. |
const FINGERPRINT = 1498615953Defines the fingerprint value used by `miniquake.artifact_compat`.
function firstByteDifference(left, right)Return [first differing offset, left byte, right byte, left length, right length]. Byte values are -1 when the corresponding stream ended first.
| Parameter | Type | Default | Description |
|---|---|---|---|
left | dynamic | — | The left input consumed by `firstByteDifference`. |
right | dynamic | — | The right input consumed by `firstByteDifference`. |
function pairListDifference(leftPairs, rightPairs, label)A Quake version-5 savegame is a deliberately lossy text snapshot. Runtime floats are written with six decimals and only DEF_SAVEGLOBAL globals are archived. Compare the parsed save-domain state instead of the complete live VM state, which also contains transient globals that the original format does not preserve.
| Parameter | Type | Default | Description |
|---|---|---|---|
leftPairs | dynamic | — | The left pairs input consumed by `pairListDifference`. |
rightPairs | dynamic | — | The right pairs input consumed by `pairListDifference`. |
label | dynamic | — | The label input consumed by `pairListDifference`. |
const RETAIL_DEMO_COUNT = 3Defines the retail demo count value used by `miniquake.artifact_compat`.
function retailDemoNames()Return retail demo names derived from the active module state.
const SAVE_FLOAT_FORMAT = "msvcrt_percent_f"Defines the save float format value used by `miniquake.artifact_compat`.
const SAVEGAME_VERSION = 5Defines the savegame version value used by `miniquake.artifact_compat`.
function saveSemanticDifference(left, right)Encode and write semantic difference.
| Parameter | Type | Default | Description |
|---|---|---|---|
left | dynamic | — | The left input consumed by `saveSemanticDifference`. |
right | dynamic | — | The right input consumed by `saveSemanticDifference`. |
function saveSemanticEqual(left, right)Compare semantic equal.
| Parameter | Type | Default | Description |
|---|---|---|---|
left | dynamic | — | The left input consumed by `saveSemanticEqual`. |
right | dynamic | — | The right input consumed by `saveSemanticEqual`. |
function saveSummary(saveBytes, mapName, timeValue, edictHash, globalsHash)Encode and write summary.
| Parameter | Type | Default | Description |
|---|---|---|---|
saveBytes | dynamic | — | Byte data consumed by the operation. |
mapName | dynamic | — | Name of the map to load or inspect. |
timeValue | dynamic | — | The time value input consumed by `saveSummary`. |
edictHash | dynamic | — | The edict hash input consumed by `saveSummary`. |
globalsHash | dynamic | — | The globals hash input consumed by `saveSummary`. |
const STATUS = "artifact_compat_109_frozen_v1"Defines the status value used by `miniquake.artifact_compat`.