Files
src/miniquake/format/progs.ml
- Package
miniquake.format.progs- Reachable
- Yes
Imports
Declarations
# checkSection
function checkSection(data, offset, count, stride, name)
Validate section and report any incompatibility.
| 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. |
stride | dynamic | — | The stride input consumed by `checkSection`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
View source
# load
function load(filename)
Implements the `load` operation for `miniquake.format.progs` (load).
| Parameter | Type | Default | Description |
|---|
filename | dynamic | — | Path of the file to process. |
View source
# parse
function parse(data, filename)
Implements the `parse` operation for `miniquake.format.progs` (parse).
| Parameter | Type | Default | Description |
|---|
data | dynamic | — | Input data consumed by the operation. |
filename | dynamic | — | Path of the file to process. |
View source
# runtimeCrc
function runtimeCrc(program)
Return runtime crc derived from the active module state.
| Parameter | Type | Default | Description |
|---|
program | dynamic | — | The program input consumed by `runtimeCrc`. |
View source
# stringAt
function stringAt(strings, offset)
Implements the `stringAt` operation for `miniquake.format.progs` (string at).
| Parameter | Type | Default | Description |
|---|
strings | dynamic | — | The strings input consumed by `stringAt`. |
offset | dynamic | — | Zero-based offset of the requested data. |
View source
# typeSize
function typeSize(valueType)
Implements the `typeSize` operation for `miniquake.format.progs` (type size).
| Parameter | Type | Default | Description |
|---|
valueType | dynamic | — | The value type input consumed by `typeSize`. |
View source
# validateDefinition
function validateDefinition(definition, limit, sectionName)
Validate definition and report any incompatibility.
| Parameter | Type | Default | Description |
|---|
definition | dynamic | — | The definition input consumed by `validateDefinition`. |
limit | dynamic | — | The limit input consumed by `validateDefinition`. |
sectionName | dynamic | — | Name that identifies the requested value or resource. |
View source
# validateLoadableProgram
function validateLoadableProgram(program)
Validate loadable program and report any incompatibility.
| Parameter | Type | Default | Description |
|---|
program | dynamic | — | The program input consumed by `validateLoadableProgram`. |
View source
# validateProgram
function validateProgram(program)
Validate program and report any incompatibility.
| Parameter | Type | Default | Description |
|---|
program | dynamic | — | The program input consumed by `validateProgram`. |
View source
# validType
function validType(valueType)
Report whether valid type.
| Parameter | Type | Default | Description |
|---|
valueType | dynamic | — | The value type input consumed by `validType`. |
View source