# appendBytes
function appendBytes(first, second)Append bytes.
| Parameter | Type | Default | Description |
|---|---|---|---|
first | dynamic | — | first value consumed by this operation. |
second | dynamic | — | second value consumed by this operation. |
src/miniquake2/network/runtime/messages.mlProvides miniquake2 network runtime messages facilities for this project.
miniquake2/network/client.ml as nclient → src/miniquake2/network/client.mlminiquake2/network/constants.ml as nc → src/miniquake2/network/constants.mlminiquake2/network/runtime/types.ml as nrtypes → src/miniquake2/network/runtime/types.mlminiquake2/protocol/checked.ml as pchecked → src/miniquake2/protocol/checked.mlminiquake2/protocol/constants.ml as pc → src/miniquake2/protocol/constants.mlminiquake2/protocol/entity_delta.ml as pentity → src/miniquake2/protocol/entity_delta.mlminiquake2/protocol/types.ml as pt → src/miniquake2/protocol/types.mlminiquake2/qcommon/byteio.ml as qbio → src/miniquake2/qcommon/byteio.mlminiquake2/qcommon/constants.ml as qc → src/miniquake2/qcommon/constants.mlminiquake2/qcommon/message.ml as qmsg → src/miniquake2/qcommon/message.mlminiquake2/qcommon/sizebuf.ml as qsz → src/miniquake2/qcommon/sizebuf.mlfunction appendBytes(first, second)Append bytes.
| Parameter | Type | Default | Description |
|---|---|---|---|
first | dynamic | — | first value consumed by this operation. |
second | dynamic | — | second value consumed by this operation. |
function parsePayload(runtime, payload)Parse payload.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
payload | dynamic | — | payload value consumed by this operation. |
function parseServerData(runtime, buffer)Parse server data.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function parseServerDataVersion(runtime, buffer, allowLegacyDemo)Parse server data version.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
allowLegacyDemo | dynamic | — | allowLegacyDemo value consumed by this operation. |
function readingBuffer(data)Return the reading buffer value.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
function readString(buffer, operation, maximum)Read string.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
operation | dynamic | — | operation value consumed by this operation. |
maximum | dynamic | — | maximum value consumed by this operation. |
function writeConfigString(buffer, index, value)Write config string.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
index | dynamic | — | Zero-based index of the affected item. |
value | dynamic | — | Value consumed or transformed by the operation. |
function writeDownload(buffer, data, offset, count, percent)Write download.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |
count | dynamic | — | Number of items or units to process. |
percent | dynamic | — | percent value consumed by this operation. |
function writeServerData(buffer, spawnCount, attractLoop, gameDir, playerNumber, levelName)Write server data.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
spawnCount | dynamic | — | Number of spawn to process. |
attractLoop | dynamic | — | attractLoop value consumed by this operation. |
gameDir | dynamic | — | gameDir value consumed by this operation. |
playerNumber | dynamic | — | playerNumber value consumed by this operation. |
levelName | dynamic | — | levelName value consumed by this operation. |
function writeSpawnBaseline(buffer, state)Write spawn baseline.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
state | dynamic | — | Mutable state inspected or updated by the operation. |
function writeStuffText(buffer, text)Write stuff text.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
text | dynamic | — | Text consumed by the operation. |