Skip to main content

js_realloc

Function js_realloc 

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

js_realloc: resize a block from js_malloc, keeping its contents.

ยงSafety

ptr must be null or a live pointer from the js_malloc family with size bytes, and must not be used again afterwards.