# alloc
function alloc(maxSize)Return the alloc value.
| Parameter | Type | Default | Description |
|---|---|---|---|
maxSize | dynamic | — | maxSize value consumed by this operation. |
src/miniquake2/qcommon/sizebuf.mlProvides miniquake2 qcommon sizebuf facilities for this project.
miniquake2/qcommon/byteio.ml as bio → src/miniquake2/qcommon/byteio.mlminiquake2/qcommon/types.ml as qt → src/miniquake2/qcommon/types.mlfunction alloc(maxSize)Return the alloc value.
| Parameter | Type | Default | Description |
|---|---|---|---|
maxSize | dynamic | — | maxSize value consumed by this operation. |
function allocOverflowing(maxSize)Return the alloc overflowing value.
| Parameter | Type | Default | Description |
|---|---|---|---|
maxSize | dynamic | — | maxSize value consumed by this operation. |
function clear(buffer)Clear state.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function dataSlice(buffer)Slice data.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function getSpace(buffer, count)Return space.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
count | dynamic | — | Number of items or units to process. |
function init(data, length)Performs the init operation for the miniquake2 qcommon sizebuf module.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
length | dynamic | — | length value consumed by this operation. |
function printBytes(buffer, source)Print bytes.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
source | dynamic | — | source value consumed by this operation. |
function printText(buffer, text)Print text.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
text | dynamic | — | Text consumed by the operation. |
function SZ_Clear(buffer)Clear sz.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function SZ_GetSpace(buffer, count)Return sz space.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
count | dynamic | — | Number of items or units to process. |
function SZ_Init(data, length)Initialize sz.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
length | dynamic | — | length value consumed by this operation. |
function SZ_Print(buffer, text)Print sz.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
text | dynamic | — | Text consumed by the operation. |
function SZ_Write(buffer, source, sourceOffset, count)Write sz.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
source | dynamic | — | source value consumed by this operation. |
sourceOffset | dynamic | — | sourceOffset value consumed by this operation. |
count | dynamic | — | Number of items or units to process. |
function write(buffer, source, sourceOffset, count)Write state.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
source | dynamic | — | source value consumed by this operation. |
sourceOffset | dynamic | — | sourceOffset value consumed by this operation. |
count | dynamic | — | Number of items or units to process. |
function writeBytes(buffer, source)Write bytes.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
source | dynamic | — | source value consumed by this operation. |