MiniQuake

src/miniquake/message.ml

Package
miniquake.message
Reachable
Yes

Imports

Declarations

beginReading

function beginReading(buffer)

Initialize state for begin reading.

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

View source

beginReadingBytes

function beginReadingBytes(data)

Initialize state for begin reading bytes.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.

View source

floatArgument

function floatArgument(value, operation)

Implements the `floatArgument` operation for `miniquake.message` (float argument).

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `floatArgument`.
operationdynamic—The operation input consumed by `floatArgument`.

View source

integerArgument

function integerArgument(value, operation)

Implements the `integerArgument` operation for `miniquake.message` (integer argument).

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `integerArgument`.
operationdynamic—The operation input consumed by `integerArgument`.

View source

MSG_BeginReading

function MSG_BeginReading(buffer)

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

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

View source

MSG_ReadAngle

function MSG_ReadAngle(reader)

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

ParameterTypeDefaultDescription
readerdynamic—The reader input consumed by `MSG_ReadAngle`.

View source

MSG_ReadByte

function MSG_ReadByte(reader)

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

ParameterTypeDefaultDescription
readerdynamic—The reader input consumed by `MSG_ReadByte`.

View source

MSG_ReadChar

function MSG_ReadChar(reader)

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

ParameterTypeDefaultDescription
readerdynamic—The reader input consumed by `MSG_ReadChar`.

View source

MSG_ReadCoord

function MSG_ReadCoord(reader)

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

ParameterTypeDefaultDescription
readerdynamic—The reader input consumed by `MSG_ReadCoord`.

View source

MSG_ReadFloat

function MSG_ReadFloat(reader)

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

ParameterTypeDefaultDescription
readerdynamic—The reader input consumed by `MSG_ReadFloat`.

View source

MSG_ReadLong

function MSG_ReadLong(reader)

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

ParameterTypeDefaultDescription
readerdynamic—The reader input consumed by `MSG_ReadLong`.

View source

MSG_ReadShort

function MSG_ReadShort(reader)

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

ParameterTypeDefaultDescription
readerdynamic—The reader input consumed by `MSG_ReadShort`.

View source

MSG_ReadString

function MSG_ReadString(reader)

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

ParameterTypeDefaultDescription
readerdynamic—The reader input consumed by `MSG_ReadString`.

View source

MSG_WriteAngle

function MSG_WriteAngle(buffer, value)

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

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `MSG_WriteAngle`.
valuedynamic—Value consumed by `MSG_WriteAngle`.

View source

MSG_WriteByte

function MSG_WriteByte(buffer, value)

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

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `MSG_WriteByte`.
valuedynamic—Value consumed by `MSG_WriteByte`.

View source

MSG_WriteChar

function MSG_WriteChar(buffer, value)

Direct pendants for the message section of WinQuake/common.c.

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `MSG_WriteChar`.
valuedynamic—Value consumed by `MSG_WriteChar`.

View source

MSG_WriteCoord

function MSG_WriteCoord(buffer, value)

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

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `MSG_WriteCoord`.
valuedynamic—Value consumed by `MSG_WriteCoord`.

View source

MSG_WriteFloat

function MSG_WriteFloat(buffer, value)

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

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `MSG_WriteFloat`.
valuedynamic—Value consumed by `MSG_WriteFloat`.

View source

MSG_WriteLong

function MSG_WriteLong(buffer, value)

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

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `MSG_WriteLong`.
valuedynamic—Value consumed by `MSG_WriteLong`.

View source

MSG_WriteShort

function MSG_WriteShort(buffer, value)

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

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `MSG_WriteShort`.
valuedynamic—Value consumed by `MSG_WriteShort`.

View source

MSG_WriteString

function MSG_WriteString(buffer, text)

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

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

View source

need

function need(reader, count)

Implements the `need` operation for `miniquake.message` (need).

ParameterTypeDefaultDescription
readerdynamic—The reader input consumed by `need`.
countdynamic—Number of entries or units to process.

View source

readAngle

function readAngle(reader)

Read and validate angle.

ParameterTypeDefaultDescription
readerdynamic—The reader input consumed by `readAngle`.

View source

readByte

function readByte(reader)

Read and validate byte.

ParameterTypeDefaultDescription
readerdynamic—The reader input consumed by `readByte`.

View source

readChar

function readChar(reader)

Read and validate char.

ParameterTypeDefaultDescription
readerdynamic—The reader input consumed by `readChar`.

View source

readCoord

function readCoord(reader)

Read and validate coord.

ParameterTypeDefaultDescription
readerdynamic—The reader input consumed by `readCoord`.

View source

readFloat

function readFloat(reader)

Read and validate float.

ParameterTypeDefaultDescription
readerdynamic—The reader input consumed by `readFloat`.

View source

readLong

function readLong(reader)

Read and validate long.

ParameterTypeDefaultDescription
readerdynamic—The reader input consumed by `readLong`.

View source

readShort

function readShort(reader)

Read and validate short.

ParameterTypeDefaultDescription
readerdynamic—The reader input consumed by `readShort`.

View source

readString

function readString(reader)

Read and validate string.

ParameterTypeDefaultDescription
readerdynamic—The reader input consumed by `readString`.

View source

readStringBytes

function readStringBytes(reader)

Read and validate string bytes.

ParameterTypeDefaultDescription
readerdynamic—The reader input consumed by `readStringBytes`.

View source

readUnsignedLong

function readUnsignedLong(reader)

Read and validate unsigned long.

ParameterTypeDefaultDescription
readerdynamic—The reader input consumed by `readUnsignedLong`.

View source

readUnsignedShort

function readUnsignedShort(reader)

Read and validate unsigned short.

ParameterTypeDefaultDescription
readerdynamic—The reader input consumed by `readUnsignedShort`.

View source

remaining

inline function remaining(reader)

Implements the `remaining` operation for `miniquake.message` (remaining).

ParameterTypeDefaultDescription
readerdynamic—The reader input consumed by `remaining`.

View source

writeAngle

function writeAngle(buffer, value)

Encode and write angle.

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `writeAngle`.
valuedynamic—Value consumed by `writeAngle`.

View source

writeByte

function writeByte(buffer, value)

Encode and write byte.

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `writeByte`.
valuedynamic—Value consumed by `writeByte`.

View source

writeChar

function writeChar(buffer, value)

Encode and write char.

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `writeChar`.
valuedynamic—Value consumed by `writeChar`.

View source

writeCoord

function writeCoord(buffer, value)

Encode and write coord.

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `writeCoord`.
valuedynamic—Value consumed by `writeCoord`.

View source

writeFloat

function writeFloat(buffer, value)

Encode and write float.

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `writeFloat`.
valuedynamic—Value consumed by `writeFloat`.

View source

writeLong

function writeLong(buffer, value)

Encode and write long.

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `writeLong`.
valuedynamic—Value consumed by `writeLong`.

View source

writeShort

function writeShort(buffer, value)

Encode and write short.

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `writeShort`.
valuedynamic—Value consumed by `writeShort`.

View source

writeString

function writeString(buffer, text)

Encode and write string.

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

View source

writeStringBytes

function writeStringBytes(buffer, data)

Encode and write string bytes.

ParameterTypeDefaultDescription
bufferdynamic—The buffer input consumed by `writeStringBytes`.
datadynamic—Input data consumed by the operation.

View source