[][src]Function grpcio_sys::grpc_slice_split_head

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

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