Function gdal_sys::VSIMalloc3 [] [src]

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

VSIMalloc3 allocates (nSize1 * nSize2 * nSize3) 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 || nSize3 == 0, a NULL pointer will also be returned. CPLFree() or VSIFree() can be used to free memory allocated by this function.