Function grpcio_sys::grpc_slice_from_copied_buffer [−][src]
pub unsafe extern "C" fn grpc_slice_from_copied_buffer(
source: *const c_char,
len: usize
) -> grpc_slice
Create a slice by copying a buffer. Equivalent to: grpc_slice slice = grpc_slice_malloc(len); memcpy(slice->data, source, len);