# beginReading
function beginReading(buffer)Initialize state for begin reading.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `beginReading`. |
src/miniquake/message.mlminiquake/byteio.ml as bio → src/miniquake/byteio.mlminiquake/native.ml as native → src/miniquake/native.mlminiquake/protocol_text.ml as protocolText → src/miniquake/protocol_text.mlminiquake/sizebuf.ml as sz → src/miniquake/sizebuf.mlminiquake/types.ml as t → src/miniquake/types.mlfunction beginReading(buffer)Initialize state for begin reading.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `beginReading`. |
function beginReadingBytes(data)Initialize state for begin reading bytes.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
function floatArgument(value, operation)Implements the `floatArgument` operation for `miniquake.message` (float argument).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `floatArgument`. |
operation | dynamic | — | The operation input consumed by `floatArgument`. |
function integerArgument(value, operation)Implements the `integerArgument` operation for `miniquake.message` (integer argument).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `integerArgument`. |
operation | dynamic | — | The operation input consumed by `integerArgument`. |
function MSG_BeginReading(buffer)Mirror Quake's MSG_BeginReading routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `MSG_BeginReading`. |
function MSG_ReadAngle(reader)Mirror Quake's MSG_ReadAngle routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
reader | dynamic | — | The reader input consumed by `MSG_ReadAngle`. |
function MSG_ReadByte(reader)Mirror Quake's MSG_ReadByte routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
reader | dynamic | — | The reader input consumed by `MSG_ReadByte`. |
function MSG_ReadChar(reader)Mirror Quake's MSG_ReadChar routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
reader | dynamic | — | The reader input consumed by `MSG_ReadChar`. |
function MSG_ReadCoord(reader)Mirror Quake's MSG_ReadCoord routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
reader | dynamic | — | The reader input consumed by `MSG_ReadCoord`. |
function MSG_ReadFloat(reader)Mirror Quake's MSG_ReadFloat routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
reader | dynamic | — | The reader input consumed by `MSG_ReadFloat`. |
function MSG_ReadLong(reader)Mirror Quake's MSG_ReadLong routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
reader | dynamic | — | The reader input consumed by `MSG_ReadLong`. |
function MSG_ReadShort(reader)Mirror Quake's MSG_ReadShort routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
reader | dynamic | — | The reader input consumed by `MSG_ReadShort`. |
function MSG_ReadString(reader)Mirror Quake's MSG_ReadString routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
reader | dynamic | — | The reader input consumed by `MSG_ReadString`. |
function MSG_WriteAngle(buffer, value)Mirror Quake's MSG_WriteAngle routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `MSG_WriteAngle`. |
value | dynamic | — | Value consumed by `MSG_WriteAngle`. |
function MSG_WriteByte(buffer, value)Mirror Quake's MSG_WriteByte routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `MSG_WriteByte`. |
value | dynamic | — | Value consumed by `MSG_WriteByte`. |
function MSG_WriteChar(buffer, value)Direct pendants for the message section of WinQuake/common.c.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `MSG_WriteChar`. |
value | dynamic | — | Value consumed by `MSG_WriteChar`. |
function MSG_WriteCoord(buffer, value)Mirror Quake's MSG_WriteCoord routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `MSG_WriteCoord`. |
value | dynamic | — | Value consumed by `MSG_WriteCoord`. |
function MSG_WriteFloat(buffer, value)Mirror Quake's MSG_WriteFloat routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `MSG_WriteFloat`. |
value | dynamic | — | Value consumed by `MSG_WriteFloat`. |
function MSG_WriteLong(buffer, value)Mirror Quake's MSG_WriteLong routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `MSG_WriteLong`. |
value | dynamic | — | Value consumed by `MSG_WriteLong`. |
function MSG_WriteShort(buffer, value)Mirror Quake's MSG_WriteShort routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `MSG_WriteShort`. |
value | dynamic | — | Value consumed by `MSG_WriteShort`. |
function MSG_WriteString(buffer, text)Mirror Quake's MSG_WriteString routine and its observable state changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `MSG_WriteString`. |
text | dynamic | — | Text to parse or process. |
function need(reader, count)Implements the `need` operation for `miniquake.message` (need).
| Parameter | Type | Default | Description |
|---|---|---|---|
reader | dynamic | — | The reader input consumed by `need`. |
count | dynamic | — | Number of entries or units to process. |
function readAngle(reader)Read and validate angle.
| Parameter | Type | Default | Description |
|---|---|---|---|
reader | dynamic | — | The reader input consumed by `readAngle`. |
function readByte(reader)Read and validate byte.
| Parameter | Type | Default | Description |
|---|---|---|---|
reader | dynamic | — | The reader input consumed by `readByte`. |
function readChar(reader)Read and validate char.
| Parameter | Type | Default | Description |
|---|---|---|---|
reader | dynamic | — | The reader input consumed by `readChar`. |
function readCoord(reader)Read and validate coord.
| Parameter | Type | Default | Description |
|---|---|---|---|
reader | dynamic | — | The reader input consumed by `readCoord`. |
function readFloat(reader)Read and validate float.
| Parameter | Type | Default | Description |
|---|---|---|---|
reader | dynamic | — | The reader input consumed by `readFloat`. |
function readLong(reader)Read and validate long.
| Parameter | Type | Default | Description |
|---|---|---|---|
reader | dynamic | — | The reader input consumed by `readLong`. |
function readShort(reader)Read and validate short.
| Parameter | Type | Default | Description |
|---|---|---|---|
reader | dynamic | — | The reader input consumed by `readShort`. |
function readString(reader)Read and validate string.
| Parameter | Type | Default | Description |
|---|---|---|---|
reader | dynamic | — | The reader input consumed by `readString`. |
function readStringBytes(reader)Read and validate string bytes.
| Parameter | Type | Default | Description |
|---|---|---|---|
reader | dynamic | — | The reader input consumed by `readStringBytes`. |
function readUnsignedLong(reader)Read and validate unsigned long.
| Parameter | Type | Default | Description |
|---|---|---|---|
reader | dynamic | — | The reader input consumed by `readUnsignedLong`. |
function readUnsignedShort(reader)Read and validate unsigned short.
| Parameter | Type | Default | Description |
|---|---|---|---|
reader | dynamic | — | The reader input consumed by `readUnsignedShort`. |
inline function remaining(reader)Implements the `remaining` operation for `miniquake.message` (remaining).
| Parameter | Type | Default | Description |
|---|---|---|---|
reader | dynamic | — | The reader input consumed by `remaining`. |
function writeAngle(buffer, value)Encode and write angle.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `writeAngle`. |
value | dynamic | — | Value consumed by `writeAngle`. |
function writeByte(buffer, value)Encode and write byte.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `writeByte`. |
value | dynamic | — | Value consumed by `writeByte`. |
function writeChar(buffer, value)Encode and write char.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `writeChar`. |
value | dynamic | — | Value consumed by `writeChar`. |
function writeCoord(buffer, value)Encode and write coord.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `writeCoord`. |
value | dynamic | — | Value consumed by `writeCoord`. |
function writeFloat(buffer, value)Encode and write float.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `writeFloat`. |
value | dynamic | — | Value consumed by `writeFloat`. |
function writeLong(buffer, value)Encode and write long.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `writeLong`. |
value | dynamic | — | Value consumed by `writeLong`. |
function writeShort(buffer, value)Encode and write short.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `writeShort`. |
value | dynamic | — | Value consumed by `writeShort`. |
function writeString(buffer, text)Encode and write string.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `writeString`. |
text | dynamic | — | Text to parse or process. |
function writeStringBytes(buffer, data)Encode and write string bytes.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | The buffer input consumed by `writeStringBytes`. |
data | dynamic | — | Input data consumed by the operation. |