Skip to main content

R_calloc_gc

Function R_calloc_gc 

Source
unsafe fn R_calloc_gc(nelem: usize, eltsize: usize) -> *mut c_void
Expand description

GC-aware calloc.

Triggers GC if allocation fails, then retries. Memory must be freed with free(). Checked wrapper for R_calloc_gc. Calls R_calloc_gc_unchecked and routes through with_r_thread. Generated from source location line 3374, column 8. Generated from source file miniextendr-api/src/ffi.rs.