# beginReading
function beginReading(buffer)Begin reading.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
src/miniquake2/qcommon/message.mlProvides miniquake2 qcommon message facilities for this project.
miniquake2/qcommon/byteio.ml as bio → src/miniquake2/qcommon/byteio.mlminiquake2/qcommon/sizebuf.ml as sz → src/miniquake2/qcommon/sizebuf.mlminiquake2/qcommon/types.ml as qt → src/miniquake2/qcommon/types.mlfunction beginReading(buffer)Begin reading.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function MSG_BeginReading(buffer)Begin msg reading.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function MSG_ReadAngle(buffer)Read msg angle.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function MSG_ReadAngle16(buffer)Read msg angle 16.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function MSG_ReadByte(buffer)Read msg byte.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function MSG_ReadChar(buffer)Read msg char.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function MSG_ReadCoord(buffer)Read msg coord.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function MSG_ReadData(buffer, count)Read msg data.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
count | dynamic | — | Number of items or units to process. |
function MSG_ReadFloat(buffer)Read msg float.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function MSG_ReadLong(buffer)Read msg long.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function MSG_ReadPos(buffer)Read msg pos.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function MSG_ReadShort(buffer)Read msg short.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function MSG_ReadString(buffer)Read msg string.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function MSG_ReadStringLine(buffer)Read msg string line.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function MSG_WriteAngle(buffer, value)Write msg angle.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
value | dynamic | — | Value consumed or transformed by the operation. |
function MSG_WriteAngle16(buffer, value)Write msg angle 16.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
value | dynamic | — | Value consumed or transformed by the operation. |
function MSG_WriteByte(buffer, value)Write msg byte.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
value | dynamic | — | Value consumed or transformed by the operation. |
function MSG_WriteChar(buffer, value)Write msg char.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
value | dynamic | — | Value consumed or transformed by the operation. |
function MSG_WriteCoord(buffer, value)Write msg coord.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
value | dynamic | — | Value consumed or transformed by the operation. |
function MSG_WriteFloat(buffer, value)Write msg float.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
value | dynamic | — | Value consumed or transformed by the operation. |
function MSG_WriteLong(buffer, value)Write msg long.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
value | dynamic | — | Value consumed or transformed by the operation. |
function MSG_WritePos(buffer, position)Write msg pos.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
position | dynamic | — | position value consumed by this operation. |
function MSG_WriteShort(buffer, value)Write msg short.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
value | dynamic | — | Value consumed or transformed by the operation. |
function MSG_WriteString(buffer, text)Write msg string.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
text | dynamic | — | Text consumed by the operation. |
function readAngle(buffer)Read angle.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function readAngle16(buffer)Read angle 16.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function readByte(buffer)Read byte.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function readChar(buffer)Read char.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function readCoord(buffer)Read coord.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function readData(buffer, count)Read data.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
count | dynamic | — | Number of items or units to process. |
function readFloat(buffer)Read float.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function readLong(buffer)Read long.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function readPos(buffer)Read pos.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function readShort(buffer)Read short.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function readString(buffer)Read string.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function readStringBytes(buffer)Read string bytes.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function readStringLine(buffer)Read string line.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function readStringLineBytes(buffer)Read string line bytes.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function remaining(buffer)Return the remaining value.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
function requireInteger(value, operation)Require integer.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
operation | dynamic | — | operation value consumed by this operation. |
function writeAngle(buffer, value)Write angle.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
value | dynamic | — | Value consumed or transformed by the operation. |
function writeAngle16(buffer, value)Write angle 16.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
value | dynamic | — | Value consumed or transformed by the operation. |
function writeByte(buffer, value)Write byte.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
value | dynamic | — | Value consumed or transformed by the operation. |
function writeChar(buffer, value)Write char.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
value | dynamic | — | Value consumed or transformed by the operation. |
function writeCoord(buffer, value)Write coord.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
value | dynamic | — | Value consumed or transformed by the operation. |
function writeFloat(buffer, value)Write float.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
value | dynamic | — | Value consumed or transformed by the operation. |
function writeLong(buffer, value)Write long.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
value | dynamic | — | Value consumed or transformed by the operation. |
function writePos(buffer, position)Write pos.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
position | dynamic | — | position value consumed by this operation. |
function writeShort(buffer, value)Write short.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
value | dynamic | — | Value consumed or transformed by the operation. |
function writeString(buffer, text)Write string.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
text | dynamic | — | Text consumed by the operation. |
function writeStringBytes(buffer, source)Write string bytes.
| Parameter | Type | Default | Description |
|---|---|---|---|
buffer | dynamic | — | Buffer that receives or supplies the operation data. |
source | dynamic | — | source value consumed by this operation. |