Function cve_rs::references::not_alloc

source ·
pub fn not_alloc<'a, T: 'static>() -> &'a mut T
Expand description

Not allocate an object. The returned reference is always invalid.

Note: It turns out that null is a valid memory address in WASM. So here we use the maximum address instead.