← All docs
hash() — internals
Compiler internals for hash(): lowering path, type checks, and runtime helpers.
hash() — internals
Where it lives
- Signature:
src/builtins/string/hash.rs - Lowering:
src/codegen/lower_inst/builtins/strings.rs:226 (lower_hash) - Function symbol:
lower_hash()
Lowering notes
- Lowers
hash(algo, data, binary?)through the shared runtime digest dispatcher.
Runtime helpers
The following runtime helpers are referenced:
__rt_hash
Signature summary
function hash(string $algo, string $data, bool $binary = false): string
What the type checker enforces
- Arity: takes 2–3 arguments (1 optional).
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/string/hash.rs(eval_builtin!) - Dispatch hooks:
direct,values