← All docs
ptr_write_string() — internals
Compiler internals for ptr_write_string(): lowering path, type checks, and runtime helpers.
ptr_write_string() — internals
Where it lives
- Signature:
src/builtins/pointers/ptr_write_string.rs - Lowering:
src/codegen/lower_inst/builtins/pointers.rs:166 (lower_ptr_write_string) - Function symbol:
lower_ptr_write_string()
Lowering notes
- Lowers
ptr_write_string(pointer, string)by copying PHP string bytes into raw memory.
Runtime helpers
The following runtime helpers are referenced:
__rt_ptr_write_string
Signature summary
function ptr_write_string(pointer $pointer, string $string): int
What the type checker enforces
- Arity: takes exactly 2 arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/raw_memory/ptr_write_string.rs(eval_builtin!) - Dispatch hooks:
direct,values