# directoryCrc
function directoryCrc(archive)Return directory crc derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
archive | dynamic | — | The archive input consumed by `directoryCrc`. |
src/miniquake/pak.mlminiquake/array_util.ml as arrayutil → src/miniquake/array_util.mlminiquake/byteio.ml as bio → src/miniquake/byteio.mlminiquake/crc.ml as crc → src/miniquake/crc.mlminiquake/types.ml as t → src/miniquake/types.mlstd/fs.ml as fs → ../MiniLangCompilerOptimization/MiniLangCompilerPy/std/fs.ml external dependencyfunction directoryCrc(archive)Return directory crc derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
archive | dynamic | — | The archive input consumed by `directoryCrc`. |
function directoryRange(archive)Implements the `directoryRange` operation for `miniquake.pak` (directory range).
| Parameter | Type | Default | Description |
|---|---|---|---|
archive | dynamic | — | The archive input consumed by `directoryRange`. |
function find(archive, name)Implements the `find` operation for `miniquake.pak` (find).
| Parameter | Type | Default | Description |
|---|---|---|---|
archive | dynamic | — | The archive input consumed by `find`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
function hasFile(archive, name)Report whether file.
| Parameter | Type | Default | Description |
|---|---|---|---|
archive | dynamic | — | The archive input consumed by `hasFile`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
function isOriginalPak0Directory(archive)Report whether is original pak0 directory.
| Parameter | Type | Default | Description |
|---|---|---|---|
archive | dynamic | — | The archive input consumed by `isOriginalPak0Directory`. |
function load(filename)Implements the `load` operation for `miniquake.pak` (load).
| Parameter | Type | Default | Description |
|---|---|---|---|
filename | dynamic | — | Path of the file to process. |
const MAX_FILES_IN_PACK = 2048Defines the max files in pack value used by `miniquake.pak`.
const PAK0_COUNT = 339Defines the pak0 count value used by `miniquake.pak`.
const PAK0_CRC = 32981Defines the pak0 crc value used by `miniquake.pak`.
function parse(data, filename)Implements the `parse` operation for `miniquake.pak` (parse).
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
filename | dynamic | — | Path of the file to process. |
function readFile(archive, name)Read and validate file.
| Parameter | Type | Default | Description |
|---|---|---|---|
archive | dynamic | — | The archive input consumed by `readFile`. |
name | dynamic | — | Stable name that identifies the requested object or option. |