Function grpcio_sys::grpc_slice_new[][src]

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

Create a slice pointing at some data. Calls malloc to allocate a refcount for the object, and arranges that destroy will be called with the pointer passed in at destruction.