# align8
function align8(value)Implements the `align8` operation for `miniquake.zone` (align8).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `align8`. |
src/miniquake/zone.mlfunction align8(value)Implements the `align8` operation for `miniquake.zone` (align8).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `align8`. |
const BLOCK_HEADER_SIZE = 24Defines the block header size value used by `miniquake.zone`.
function check(state)Implements the `check` operation for `miniquake.zone` (check).
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.zone` state used by `check`. |
function clear(state, size)Implements the `clear` operation for `miniquake.zone` (clear).
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.zone` state used by `clear`. |
size | dynamic | — | Size of the requested data or resource. |
function create(size)Implements the `create` operation for `miniquake.zone` (create).
| Parameter | Type | Default | Description |
|---|---|---|---|
size | dynamic | — | Size of the requested data or resource. |
function dumpHeap(state)Implements the `dumpHeap` operation for `miniquake.zone` (dump heap).
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.zone` state used by `dumpHeap`. |
const DYNAMIC_SIZE = 49152Defines the dynamic size value used by `miniquake.zone`.
function free(block)Implements the `free` operation for `miniquake.zone` (free).
| Parameter | Type | Default | Description |
|---|---|---|---|
block | dynamic | — | The block input consumed by `free`. |
function freeMemory(state)Release state for free memory.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.zone` state used by `freeMemory`. |
function indexOf(state, block)Return index of for the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.zone` state used by `indexOf`. |
block | dynamic | — | The block input consumed by `indexOf`. |
function insertAfter(state, index, block)Add state for insert after.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.zone` state used by `insertAfter`. |
index | dynamic | — | Zero-based index of the requested entry. |
block | dynamic | — | The block input consumed by `insertAfter`. |
function malloc(state, size)Implements the `malloc` operation for `miniquake.zone` (malloc).
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.zone` state used by `malloc`. |
size | dynamic | — | Size of the requested data or resource. |
const MINFRAGMENT = 64Defines the minfragment value used by `miniquake.zone`.
function printHeap(state)Format and emit heap.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.zone` state used by `printHeap`. |
function removeAt(state, index)Release state for remove at.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.zone` state used by `removeAt`. |
index | dynamic | — | Zero-based index of the requested entry. |
function tagMalloc(state, size, tag)Implements the `tagMalloc` operation for `miniquake.zone` (tag malloc).
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.zone` state used by `tagMalloc`. |
size | dynamic | — | Size of the requested data or resource. |
tag | dynamic | — | The tag input consumed by `tagMalloc`. |
const TRASH_SIZE = 4Defines the trash size value used by `miniquake.zone`.
function Z_CheckHeap(state)Mirror Quake's Z_CheckHeap routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.zone` state used by `Z_CheckHeap`. |
function Z_ClearZone(state, size)Explicit zone.c/header entry points. The zone state parameter replaces the original process-global mainzone pointer.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.zone` state used by `Z_ClearZone`. |
size | dynamic | — | Size of the requested data or resource. |
function Z_DumpHeap(state)Mirror Quake's Z_DumpHeap routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.zone` state used by `Z_DumpHeap`. |
function Z_Free(block)Mirror Quake's Z_Free routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
block | dynamic | — | The block input consumed by `Z_Free`. |
function Z_FreeMemory(state)Mirror Quake's Z_FreeMemory routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.zone` state used by `Z_FreeMemory`. |
function Z_Malloc(state, size)Mirror Quake's Z_Malloc routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.zone` state used by `Z_Malloc`. |
size | dynamic | — | Size of the requested data or resource. |
function Z_Print(state)Mirror Quake's Z_Print routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.zone` state used by `Z_Print`. |
function Z_TagMalloc(state, size, tag)Mirror Quake's Z_TagMalloc routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.zone` state used by `Z_TagMalloc`. |
size | dynamic | — | Size of the requested data or resource. |
tag | dynamic | — | The tag input consumed by `Z_TagMalloc`. |
const ZONE_ADMIN_SIZE = 32Defines the zone admin size value used by `miniquake.zone`.
miniquake.zone.ZoneBlock struct
const ZONEID = 1919505Defines the zoneid value used by `miniquake.zone`.
miniquake.zone.ZoneState struct