MiniQuake

src/miniquake/sizebuf.ml

Package
miniquake.sizebuf
Reachable
Yes

Imports

Declarations

alloc

function alloc(maxSize)

Create and initialize the requested value.

ParameterTypeDefaultDescription
maxSizedynamic—Size of the requested data or resource.

View source

allocHunk

function allocHunk(startSize)

Create and initialize hunk.

ParameterTypeDefaultDescription
startSizedynamic—Size of the requested data or resource.

View source

allocHunkManaged

function allocHunkManaged(memoryState, startSize)

Create and initialize hunk managed.

ParameterTypeDefaultDescription
memoryStatedynamic—Mutable state used by `allocHunkManaged`.
startSizedynamic—Size of the requested data or resource.

View source

allocOverflowing

function allocOverflowing(maxSize)

Create and initialize overflowing.

ParameterTypeDefaultDescription
maxSizedynamic—Size of the requested data or resource.

View source

clear

function clear(buffer)

Implements the `clear` operation for `miniquake.sizebuf` (clear).

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `clear`.

View source

dataSlice

function dataSlice(buffer)

Implements the `dataSlice` operation for `miniquake.sizebuf` (data slice).

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `dataSlice`.

View source

free

function free(buffer)

Implements the `free` operation for `miniquake.sizebuf` (free).

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `free`.

View source

getSpace

function getSpace(buffer, count)

Return space.

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `getSpace`.
countdynamic—Number of entries or units to process.

View source

printText

function printText(buffer, text)

Format and emit text.

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `printText`.
textdynamic—Text to parse or process.

View source

SZ_Alloc

function SZ_Alloc(startSize)

Direct pendants for the size-buffer section of WinQuake/common.c.

ParameterTypeDefaultDescription
startSizedynamic—Size of the requested data or resource.

View source

SZ_Clear

function SZ_Clear(buffer)

Mirror Quake's SZ_Clear routine and its observable state changes.

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `SZ_Clear`.

View source

SZ_Free

function SZ_Free(buffer)

Mirror Quake's SZ_Free routine and its observable state changes.

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `SZ_Free`.

View source

SZ_GetSpace

function SZ_GetSpace(buffer, count)

Mirror Quake's SZ_GetSpace routine and its observable state changes.

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `SZ_GetSpace`.
countdynamic—Number of entries or units to process.

View source

SZ_Print

function SZ_Print(buffer, text)

Mirror Quake's SZ_Print routine and its observable state changes.

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `SZ_Print`.
textdynamic—Text to parse or process.

View source

SZ_Write

function SZ_Write(buffer, source, sourceOffset, count)

Mirror Quake's SZ_Write routine and its observable state changes.

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `SZ_Write`.
sourcedynamic—Source value or collection to read.
sourceOffsetdynamic—Zero-based offset of the requested data.
countdynamic—Number of entries or units to process.

View source

write

function write(buffer, source, sourceOffset, count)

Implements the `write` operation for `miniquake.sizebuf` (write).

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `write`.
sourcedynamic—Source value or collection to read.
sourceOffsetdynamic—Zero-based offset of the requested data.
countdynamic—Number of entries or units to process.

View source

writeBytes

function writeBytes(buffer, source)

Writes bytes for `miniquake.sizebuf`.

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `writeBytes`.
sourcedynamic—Source value or collection to read.

View source

writeEncodedCStringAt

function writeEncodedCStringAt(buffer, encoded, count, offset)

Encode and write encoded cstring at.

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `writeEncodedCStringAt`.
encodeddynamic—The encoded input consumed by `writeEncodedCStringAt`.
countdynamic—Number of entries or units to process.
offsetdynamic—Zero-based offset of the requested data.

View source