# currentTimestamp
function currentTimestamp()Return the current timestamp value.
src/miniquake2/runtime/save_metadata.mlProvides miniquake2 runtime save metadata facilities for this project.
miniquake2/qcommon/byteio.ml as savemetadatabyteio → src/miniquake2/qcommon/byteio.mlminiquake2/qcommon/cmd.ml as savemetadatacmd → src/miniquake2/qcommon/cmd.mlstd/fs.ml as savemetadatafs → ../MiniLangCompilerML/std/fs.ml external dependencystd/string.ml as savemetadatastring → ../MiniLangCompilerML/std/string.ml external dependencyfunction currentTimestamp()Return the current timestamp value.
function decode(saveMetadataDecodeText)Decode state.
| Parameter | Type | Default | Description |
|---|---|---|---|
saveMetadataDecodeText | dynamic | — | saveMetadataDecodeText value consumed by this operation. |
function encode(saveMetadataEncodeInput)Encodes encode for the miniquake2 runtime save metadata workflow.
| Parameter | Type | Default | Description |
|---|---|---|---|
saveMetadataEncodeInput | dynamic | — | saveMetadataEncodeInput value consumed by this operation. |
function fourDigits(saveMetadataFourValue)Return the four digits value.
| Parameter | Type | Default | Description |
|---|---|---|---|
saveMetadataFourValue | dynamic | — | saveMetadataFourValue value consumed by this operation. |
extern function GetLocalTime(systemTime as bytes) from "kernel32.dll" returns voidInvokes the native GetLocalTime entry point used by the miniquake2 runtime save metadata module.
| Parameter | Type | Default | Description |
|---|---|---|---|
systemTime | bytes | — | systemTime value consumed by this operation. |
const METADATA_HEADER = "MiniQuake2Slot 1"Defines the metadata header constant used by the miniquake2 runtime save metadata module.
function safeToken(saveMetadataSafeValue)Return the safe token value.
| Parameter | Type | Default | Description |
|---|---|---|---|
saveMetadataSafeValue | dynamic | — | saveMetadataSafeValue value consumed by this operation. |
function save(saveMetadataSavePath, saveMetadataSaveValue)Save state.
| Parameter | Type | Default | Description |
|---|---|---|---|
saveMetadataSavePath | dynamic | — | Path associated with save metadata save. |
saveMetadataSaveValue | dynamic | — | saveMetadataSaveValue value consumed by this operation. |
miniquake2.runtime.save_metadata.SaveSlotMetadata struct
function twoDigits(saveMetadataTwoValue)Return the two digits value.
| Parameter | Type | Default | Description |
|---|---|---|---|
saveMetadataTwoValue | dynamic | — | saveMetadataTwoValue value consumed by this operation. |
function validate(saveMetadataValidateValue)Validates validate for the miniquake2 runtime save metadata workflow.
| Parameter | Type | Default | Description |
|---|---|---|---|
saveMetadataValidateValue | dynamic | — | saveMetadataValidateValue value consumed by this operation. |