pub fn heap_ptr() -> raw_ptr 
Expand description

Memory address below the current bottom of the heap (points to free memory).

Returns

  • [raw_ptr] - The location in memory of the bottom of the heap.

Examples

use std::registers::heap_ptr;

fn foo() {
    let hp = heap_ptr();
    assert(!hp.is_null());
}