Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

Module visibility

Module visibility 

Source
Expand description

Allocation-free Quake and GoldSrc visibility row codecs. Allocation-free Quake/GoldSrc visibility RLE.

Nonzero bytes are literals; zero followed by a count advances over invisible leaves. The caller selects strict container validation or GoldSrc’s bounded best-effort policy, and replacement or OR merging, without a second row buffer.

Functions§

decode_clamped
Decode a bounded GoldSrc row, clipping oversized runs and leaving a truncated tail invisible. Zero-length runs are consumed, not rejected.
decode_strict
Decode exactly one row, rejecting truncation, zero runs and oversized runs. Bytes already decoded remain in output on failure.
merge_clamped
OR a bounded GoldSrc row into an existing row, clipping oversized runs and preserving the destination after truncated input or invisible runs.
merge_strict
OR one strict row into an existing row. Invisible runs leave it unchanged. Bytes already merged remain in output on failure.