← All docs
ptr_read_f32()
Reads one IEEE 754 single-precision value through a raw pointer and returns it as a float.
ptr_read_f32()
function ptr_read_f32(pointer $pointer): float
Reads one IEEE 754 single-precision value through a raw pointer and returns it as a float.
Parameters:
$pointer(pointer)
Returns: float
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported through a declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/raw_memory/ptr_read_f32.rs).- Strict PHP mode: hidden - this builtin is an elephc extension with no PHP equivalent, so programs compiled with
--strict-phptreat the name as nonexistent, in compiled code and inside eval’d code.
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how ptr_read_f32 is implemented in the compiler, see the internals page.