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