pub type s2n_mem_malloc_callback = Option<unsafe extern "C" fn(_: *mut *mut c_void, _: u32, _: *mut u32) -> i32>;
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),
}