pub type rcl_allocator_t = rcutils_allocator_t;
Aliased Type§
struct rcl_allocator_t {
pub allocate: Option<unsafe extern "C" fn(usize, *mut c_void) -> *mut c_void>,
pub deallocate: Option<unsafe extern "C" fn(*mut c_void, *mut c_void)>,
pub reallocate: Option<unsafe extern "C" fn(*mut c_void, usize, *mut c_void) -> *mut c_void>,
pub zero_allocate: Option<unsafe extern "C" fn(usize, usize, *mut c_void) -> *mut c_void>,
pub state: *mut c_void,
}
Fields§
§allocate: Option<unsafe extern "C" fn(usize, *mut c_void) -> *mut c_void>
§deallocate: Option<unsafe extern "C" fn(*mut c_void, *mut c_void)>
§reallocate: Option<unsafe extern "C" fn(*mut c_void, usize, *mut c_void) -> *mut c_void>
§zero_allocate: Option<unsafe extern "C" fn(usize, usize, *mut c_void) -> *mut c_void>
§state: *mut c_void