← All docs
ptr_write8() — internals
Compiler internals for ptr_write8(): lowering path, type checks, and runtime helpers.
ptr_write8() — internals
Where it lives
- Signature:
src/builtins/pointers/ptr_write8.rs - Lowering:
src/codegen/lower_inst/builtins/pointers.rs:151 (lower_ptr_write8) - Function symbol:
lower_ptr_write8()
Lowering notes
- Lowers
ptr_write8(pointer, value)by writing one byte through a checked pointer.
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function ptr_write8(pointer $pointer, int $value): void
What the type checker enforces
- Arity: takes exactly 2 arguments.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/raw_memory/ptr_write8.rs(eval_builtin!) - Dispatch hooks:
direct,values