Function grpcio_sys::grpc_slice_split_tail[][src]

pub unsafe extern "C" fn grpc_slice_split_tail(
    s: *mut grpc_slice,
    split: usize
) -> grpc_slice
Expand description

Splits s into two: modifies s to be s[0:split], and returns a new slice, sharing a refcount with s, that contains s[split:s.length]. Requires s initialized, split <= s.length