Function gdal_sys::VSIMalloc2 [] [src]

pub unsafe extern "C" fn VSIMalloc2(nSize1: usize, nSize2: usize) -> *mut c_void

VSIMalloc2 allocates (nSize1 * nSize2) bytes. In case of overflow of the multiplication, or if memory allocation fails, a NULL pointer is returned and a CE_Failure error is raised with CPLError(). If nSize1 == 0 || nSize2 == 0, a NULL pointer will also be returned. CPLFree() or VSIFree() can be used to free memory allocated by this function.