Type Alias s2n_tls_sys::s2n_mem_malloc_callback
source · pub type s2n_mem_malloc_callback = Option<unsafe extern "C" fn(ptr: *mut *mut c_void, requested: u32, allocated: *mut u32) -> c_int>;
Expand description
A function that can allocate at least requested
bytes of memory.
It stores the location of that memory in *ptr and the size of the allocated data in *allocated. The function may choose to allocate more memory than was requested. s2n-tls will consider all allocated memory available for use, and will attempt to free all allocated memory when able.
Aliased Type§
enum s2n_mem_malloc_callback {
None,
Some(unsafe extern "C" fn(_: *mut *mut c_void, _: u32, _: *mut u32) -> i32),
}