← All docs
fwrite() — internals
Compiler internals for fwrite(): lowering path, type checks, and runtime helpers.
fwrite() — internals
Where it lives
- Signature:
src/builtins/io/fwrite.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:2836 (lower_fwrite) - Function symbol:
lower_fwrite()
Lowering notes
- Lowers
fwrite(stream, data)and returns the number of bytes written.
Runtime helpers
The following runtime helpers are referenced:
__rt_fwrite
Signature summary
function fwrite(resource $stream, string $data): int
What the type checker enforces
- Arity: takes exactly 2 arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/fwrite.rs(eval_builtin!) - Dispatch hooks:
direct,values