Type Alias r2r_rcl::rcutils_allocator_t

source ·
pub type rcutils_allocator_t = rcutils_allocator_s;

Aliased Type§

struct rcutils_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