Skip to main content

js_malloc

Function js_malloc 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn js_malloc( _ctx: *mut JsContext, size: usize, ) -> *mut c_void
Expand description

js_malloc: size bytes owned by the runtime, zeroed by nobody.

ยงSafety

The answer must be released with js_free/js_free_rt (or js_realloc), and size bytes from it may be written in the meantime.