← All docs
stream_copy_to_stream() — internals
Compiler internals for stream_copy_to_stream(): lowering path, type checks, and runtime helpers.
stream_copy_to_stream() — internals
Where it lives
- Signature:
src/builtins/io/stream_copy_to_stream.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:1358 (lower_stream_copy_to_stream) - Function symbol:
lower_stream_copy_to_stream()
Lowering notes
- Lowers
stream_copy_to_stream(from, to, length?, offset?)through wrapper-aware read/write loops.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function stream_copy_to_stream(resource $from, resource $to, int $length = null, int $offset = -1): mixed
What the type checker enforces
- Arity: takes 2–4 arguments (2 optional).
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/stream_copy_to_stream.rs(eval_builtin!) - Dispatch hooks:
direct,values