MiniQuake2

src/miniquake2/qcommon/sizebuf.ml

Provides miniquake2 qcommon sizebuf facilities for this project.

Package
miniquake2.qcommon.sizebuf
Reachable
Yes

Imports

Declarations

alloc

function alloc(maxSize)

Return the alloc value.

ParameterTypeDefaultDescription
maxSizedynamic—maxSize value consumed by this operation.

View source

allocOverflowing

function allocOverflowing(maxSize)

Return the alloc overflowing value.

ParameterTypeDefaultDescription
maxSizedynamic—maxSize value consumed by this operation.

View source

clear

function clear(buffer)

Clear state.

ParameterTypeDefaultDescription
bufferdynamic—Buffer that receives or supplies the operation data.

View source

dataSlice

function dataSlice(buffer)

Slice data.

ParameterTypeDefaultDescription
bufferdynamic—Buffer that receives or supplies the operation data.

View source

getSpace

function getSpace(buffer, count)

Return space.

ParameterTypeDefaultDescription
bufferdynamic—Buffer that receives or supplies the operation data.
countdynamic—Number of items or units to process.

View source

init

function init(data, length)

Performs the init operation for the miniquake2 qcommon sizebuf module.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
lengthdynamic—length value consumed by this operation.

View source

printBytes

function printBytes(buffer, source)

Print bytes.

ParameterTypeDefaultDescription
bufferdynamic—Buffer that receives or supplies the operation data.
sourcedynamic—source value consumed by this operation.

View source

printText

function printText(buffer, text)

Print text.

ParameterTypeDefaultDescription
bufferdynamic—Buffer that receives or supplies the operation data.
textdynamic—Text consumed by the operation.

View source

SZ_Clear

function SZ_Clear(buffer)

Clear sz.

ParameterTypeDefaultDescription
bufferdynamic—Buffer that receives or supplies the operation data.

View source

SZ_GetSpace

function SZ_GetSpace(buffer, count)

Return sz space.

ParameterTypeDefaultDescription
bufferdynamic—Buffer that receives or supplies the operation data.
countdynamic—Number of items or units to process.

View source

SZ_Init

function SZ_Init(data, length)

Initialize sz.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
lengthdynamic—length value consumed by this operation.

View source

SZ_Print

function SZ_Print(buffer, text)

Print sz.

ParameterTypeDefaultDescription
bufferdynamic—Buffer that receives or supplies the operation data.
textdynamic—Text consumed by the operation.

View source

SZ_Write

function SZ_Write(buffer, source, sourceOffset, count)

Write sz.

ParameterTypeDefaultDescription
bufferdynamic—Buffer that receives or supplies the operation data.
sourcedynamic—source value consumed by this operation.
sourceOffsetdynamic—sourceOffset value consumed by this operation.
countdynamic—Number of items or units to process.

View source

write

function write(buffer, source, sourceOffset, count)

Write state.

ParameterTypeDefaultDescription
bufferdynamic—Buffer that receives or supplies the operation data.
sourcedynamic—source value consumed by this operation.
sourceOffsetdynamic—sourceOffset value consumed by this operation.
countdynamic—Number of items or units to process.

View source

writeBytes

function writeBytes(buffer, source)

Write bytes.

ParameterTypeDefaultDescription
bufferdynamic—Buffer that receives or supplies the operation data.
sourcedynamic—source value consumed by this operation.

View source