# bigLong
function bigLong(value)Return the big long value.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
src/miniquake2/qcommon/byteio.mlProvides miniquake2 qcommon byteio facilities for this project.
function bigLong(value)Return the big long value.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function bigShort(value)Return the big short value.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function copyInto(destination, destinationOffset, source, sourceOffset, count)Populate the copy destination.
| Parameter | Type | Default | Description |
|---|---|---|---|
destination | dynamic | — | destination value consumed by this operation. |
destinationOffset | dynamic | — | destinationOffset value consumed by this operation. |
source | dynamic | — | source value consumed by this operation. |
sourceOffset | dynamic | — | sourceOffset value consumed by this operation. |
count | dynamic | — | Number of items or units to process. |
inline function f32(data, offset)Return the f 32 value.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |
function float32Bits(value)Encode IEEE-754 binary32 using round-to-nearest-even. Negative zero is normalized to positive zero because MiniLang has no signbit primitive.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function float32FromBits(bits)Return the float 32 from bits.
| Parameter | Type | Default | Description |
|---|---|---|---|
bits | dynamic | — | bits value consumed by this operation. |
function fractionBits23(fraction)Emit 23 fraction bits from a value in [0, 1), returning [bits, tail].
| Parameter | Type | Default | Description |
|---|---|---|---|
fraction | dynamic | — | fraction value consumed by this operation. |
inline function i16(data, offset)Return the i 16 value.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |
function i32(data, offset)Return the i 32 value.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |
inline function i8(data, offset)Return the i 8 value.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |
inline function littleLong(value)Return the little long value.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
inline function littleShort(value)The supported MiniQuake2 release platform is little-endian Windows x64.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function longSwap(value)Swap long.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function powerOfTwo(exponent)Return the power of two value.
| Parameter | Type | Default | Description |
|---|---|---|---|
exponent | dynamic | — | exponent value consumed by this operation. |
inline function putF32(data, offset, value)Write f 32.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |
value | dynamic | — | Value consumed or transformed by the operation. |
inline function putI16(data, offset, value)Write i 16.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |
value | dynamic | — | Value consumed or transformed by the operation. |
inline function putI32(data, offset, value)Write i 32.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |
value | dynamic | — | Value consumed or transformed by the operation. |
inline function putI8(data, offset, value)Write i 8.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |
value | dynamic | — | Value consumed or transformed by the operation. |
inline function putU16(data, offset, value)Write u 16.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |
value | dynamic | — | Value consumed or transformed by the operation. |
function putU32(data, offset, value)Write u 32.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |
value | dynamic | — | Value consumed or transformed by the operation. |
inline function putU8(data, offset, value)Write u 8.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |
value | dynamic | — | Value consumed or transformed by the operation. |
function requireRange(data, offset, count)Require range.
| Parameter | Type | Default | Description |
|---|---|---|---|
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. |
function shortSwap(value)Swap short.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function shouldRoundUp(remainder, leastBit)Round a binary fractional tail to nearest, ties to even.
| Parameter | Type | Default | Description |
|---|---|---|---|
remainder | dynamic | — | remainder value consumed by this operation. |
leastBit | dynamic | — | leastBit value consumed by this operation. |
function truncInt(value)Convert an integer or finite MiniLang float to a C-style truncating int. Constructing the result bit by bit avoids a native float-to-int helper.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
inline function u16(data, offset)Return the u 16 value.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |
function u32(data, offset)Return the u 32 value.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |
inline function u8(data, offset)Return the u 8 value.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |