← All docs
gzcompress() — internals
Compiler internals for gzcompress(): lowering path, type checks, and runtime helpers.
gzcompress() — internals
Where it lives
- Signature:
src/builtins/string/gzcompress.rs - Lowering:
src/codegen/lower_inst/builtins/strings.rs:464 (lower_gzcompress) - Function symbol:
lower_gzcompress()
Lowering notes
- Lowers
gzcompress(data, level?)through inline zlibcompress2calls.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function gzcompress(string $data, int $level = -1): string
What the type checker enforces
- Arity: takes 1–2 arguments (1 optional).
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/string/gzcompress.rs(eval_builtin!) - Dispatch hooks:
direct,values