Function grpcio_sys::grpc_slice_split_head
source · pub unsafe extern "C" fn grpc_slice_split_head(
s: *mut grpc_slice,
split: usize
) -> grpc_slice
Expand description
Splits s into two: modifies s to be s[split:s.length], and returns a new slice, sharing a refcount with s, that contains s[0:split]. Requires s initialized, split <= s.length