Skip to main content

diffsol_alloc

Function diffsol_alloc 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn diffsol_alloc( size: usize, align: usize, ) -> *mut u8
Expand description

Allocate aligned memory for arbitrary data

ยงSafety

The returned pointer must be released with diffsol_free using the same size and align. align must be a valid alignment value.