pub type dds_allocator_t = dds_allocator;Expand description
@brief DDS Allocator @ingroup alloc C-Style allocator API
Aliased Type§
#[repr(C)]pub struct dds_allocator_t {
pub malloc: Option<unsafe extern "C" fn(usize) -> *mut c_void>,
pub realloc: Option<unsafe extern "C" fn(*mut c_void, usize) -> *mut c_void>,
pub free: Option<unsafe extern "C" fn(*mut c_void)>,
}Fields§
§malloc: Option<unsafe extern "C" fn(usize) -> *mut c_void>< behave like C malloc
realloc: Option<unsafe extern "C" fn(*mut c_void, usize) -> *mut c_void>< behave like C realloc, may be null
free: Option<unsafe extern "C" fn(*mut c_void)>< behave like C free