pub unsafe extern "C" fn grpc_slice_new_with_user_data(
    p: *mut c_void,
    len: usize,
    destroy: Option<unsafe extern "C" fn(arg1: *mut c_void)>,
    user_data: *mut c_void
) -> grpc_slice
Expand description

Equivalent to grpc_slice_new, but with a separate pointer that is passed to the destroy function. This function can be useful when the data is part of a larger structure that must be destroyed when the data is no longer needed.