MiniQuake

src/miniquake/byteio.ml

Package
miniquake.byteio
Reachable
Yes

Imports

Declarations

bigFloat

function bigFloat(value)

Convert byte order for big float.

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `bigFloat`.

View source

bigLong

function bigLong(value)

Convert byte order for big long.

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `bigLong`.

View source

bigShort

function bigShort(value)

MiniQuake's supported release platform is little-endian Windows x64.

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `bigShort`.

View source

copyInto

function copyInto(destination, destinationOffset, source, sourceOffset, count)

Transfer data for copy into.

ParameterTypeDefaultDescription
destinationdynamic—Destination value or collection to update.
destinationOffsetdynamic—Zero-based offset of the requested data.
sourcedynamic—Source value or collection to read.
sourceOffsetdynamic—Zero-based offset of the requested data.
countdynamic—Number of entries or units to process.

View source

cString

function cString(data, offset)

Implements the `cString` operation for `miniquake.byteio` (c string).

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.

View source

equalInsensitive

function equalInsensitive(a, b)

Check equal insensitive.

ParameterTypeDefaultDescription
adynamic—The a input consumed by `equalInsensitive`.
bdynamic—The b input consumed by `equalInsensitive`.

View source

f32

inline function f32(data, offset)

Read an IEEE-754 single-precision value from the byte buffer.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.

View source

fixedString

function fixedString(data, offset, count)

Implements the `fixedString` operation for `miniquake.byteio` (fixed string).

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.
countdynamic—Number of entries or units to process.

View source

floatNoSwap

function floatNoSwap(value)

Convert byte order for float no swap.

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `floatNoSwap`.

View source

floatSwap

function floatSwap(value)

Convert byte order for float swap.

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `floatSwap`.

View source

fourCC

function fourCC(data, offset)

Implements the `fourCC` operation for `miniquake.byteio` (four cc).

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.

View source

i16

inline function i16(data, offset)

Read a little-endian signed 16-bit value from the byte buffer.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.

View source

i32

function i32(data, offset)

Read a little-endian signed 32-bit value from the byte buffer.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.

View source

i8

inline function i8(data, offset)

Read a signed 8-bit value from the byte buffer.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.

View source

littleFloat

function littleFloat(value)

Convert byte order for little float.

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `littleFloat`.

View source

littleLong

function littleLong(value)

Convert byte order for little long.

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `littleLong`.

View source

littleShort

function littleShort(value)

Convert byte order for little short.

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `littleShort`.

View source

longNoSwap

function longNoSwap(value)

Convert byte order for long no swap.

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `longNoSwap`.

View source

longSwap

function longSwap(value)

Convert byte order for long swap.

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `longSwap`.

View source

lower

function lower(text)

Convert data for lower.

ParameterTypeDefaultDescription
textdynamic—Text to parse or process.

View source

putF32

inline function putF32(data, offset, value)

Encode and write f32.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.
valuedynamic—Value consumed by `putF32`.

View source

putI16

inline function putI16(data, offset, value)

Encode and write i16.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.
valuedynamic—Value consumed by `putI16`.

View source

putI32

function putI32(data, offset, value)

Encode and write i32.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.
valuedynamic—Value consumed by `putI32`.

View source

putI8

inline function putI8(data, offset, value)

Encode and write i8.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.
valuedynamic—Value consumed by `putI8`.

View source

putU16

inline function putU16(data, offset, value)

Encode and write u16.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.
valuedynamic—Value consumed by `putU16`.

View source

putU32

function putU32(data, offset, value)

Encode and write u32.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.
valuedynamic—Value consumed by `putU32`.

View source

putU8

inline function putU8(data, offset, value)

Encode and write u8.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.
valuedynamic—Value consumed by `putU8`.

View source

requireRange

function requireRange(data, offset, count)

Validate range and report any invalid state.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.
countdynamic—Number of entries or units to process.

View source

shortNoSwap

function shortNoSwap(value)

Convert byte order for short no swap.

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `shortNoSwap`.

View source

shortSwap

function shortSwap(value)

Convert byte order for short swap.

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `shortSwap`.

View source

u16

inline function u16(data, offset)

Read a little-endian unsigned 16-bit value from the byte buffer.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.

View source

u32

function u32(data, offset)

Read a little-endian unsigned 32-bit value from the byte buffer.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.

View source

u8

inline function u8(data, offset)

Read an unsigned 8-bit value from the byte buffer.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset of the requested data.

View source