# bigFloat
function bigFloat(value)Convert byte order for big float.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `bigFloat`. |
src/miniquake/byteio.mlminiquake/native.ml as native → src/miniquake/native.mlminiquake/protocol_text.ml as quakeText → src/miniquake/protocol_text.mlfunction bigFloat(value)Convert byte order for big float.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `bigFloat`. |
function bigLong(value)Convert byte order for big long.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `bigLong`. |
function bigShort(value)MiniQuake's supported release platform is little-endian Windows x64.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `bigShort`. |
function copyInto(destination, destinationOffset, source, sourceOffset, count)Transfer data for copy into.
| Parameter | Type | Default | Description |
|---|---|---|---|
destination | dynamic | — | Destination value or collection to update. |
destinationOffset | dynamic | — | Zero-based offset of the requested data. |
source | dynamic | — | Source value or collection to read. |
sourceOffset | dynamic | — | Zero-based offset of the requested data. |
count | dynamic | — | Number of entries or units to process. |
function cString(data, offset)Implements the `cString` operation for `miniquake.byteio` (c string).
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
function equalInsensitive(a, b)Check equal insensitive.
| Parameter | Type | Default | Description |
|---|---|---|---|
a | dynamic | — | The a input consumed by `equalInsensitive`. |
b | dynamic | — | The b input consumed by `equalInsensitive`. |
inline function f32(data, offset)Read an IEEE-754 single-precision value from the byte buffer.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
function fixedString(data, offset, count)Implements the `fixedString` operation for `miniquake.byteio` (fixed string).
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
count | dynamic | — | Number of entries or units to process. |
function floatNoSwap(value)Convert byte order for float no swap.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `floatNoSwap`. |
function floatSwap(value)Convert byte order for float swap.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `floatSwap`. |
function fourCC(data, offset)Implements the `fourCC` operation for `miniquake.byteio` (four cc).
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
inline function i16(data, offset)Read a little-endian signed 16-bit value from the byte buffer.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
function i32(data, offset)Read a little-endian signed 32-bit value from the byte buffer.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
inline function i8(data, offset)Read a signed 8-bit value from the byte buffer.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
function littleFloat(value)Convert byte order for little float.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `littleFloat`. |
function littleLong(value)Convert byte order for little long.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `littleLong`. |
function littleShort(value)Convert byte order for little short.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `littleShort`. |
function longNoSwap(value)Convert byte order for long no swap.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `longNoSwap`. |
function longSwap(value)Convert byte order for long swap.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `longSwap`. |
function lower(text)Convert data for lower.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to parse or process. |
inline function putF32(data, offset, value)Encode and write f32.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
value | dynamic | — | Value consumed by `putF32`. |
inline function putI16(data, offset, value)Encode and write i16.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
value | dynamic | — | Value consumed by `putI16`. |
function putI32(data, offset, value)Encode and write i32.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
value | dynamic | — | Value consumed by `putI32`. |
inline function putI8(data, offset, value)Encode and write i8.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
value | dynamic | — | Value consumed by `putI8`. |
inline function putU16(data, offset, value)Encode and write u16.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
value | dynamic | — | Value consumed by `putU16`. |
function putU32(data, offset, value)Encode and write u32.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
value | dynamic | — | Value consumed by `putU32`. |
inline function putU8(data, offset, value)Encode and write u8.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
value | dynamic | — | Value consumed by `putU8`. |
function requireRange(data, offset, count)Validate range and report any invalid state.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
count | dynamic | — | Number of entries or units to process. |
function shortNoSwap(value)Convert byte order for short no swap.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `shortNoSwap`. |
function shortSwap(value)Convert byte order for short swap.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `shortSwap`. |
inline function u16(data, offset)Read a little-endian unsigned 16-bit value from the byte buffer.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
function u32(data, offset)Read a little-endian unsigned 32-bit value from the byte buffer.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |
inline function u8(data, offset)Read an unsigned 8-bit value from the byte buffer.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset of the requested data. |