Function grpcio_sys::grpc_slice_new_with_len
source · pub unsafe extern "C" fn grpc_slice_new_with_len(
p: *mut c_void,
len: usize,
destroy: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: usize)>
) -> grpc_slice
Expand description
Equivalent to grpc_slice_new, but with a two argument destroy function that also takes the slice length.