Function grpcio_sys::grpc_slice_sub [−][src]
pub unsafe extern "C" fn grpc_slice_sub(
s: grpc_slice,
begin: usize,
end: usize
) -> grpc_slice
Return a result slice derived from s, which shares a ref count with \a s, where result.data==s.data+begin, and result.length==end-begin. The ref count of \a s is increased by one. Do not assign result back to \a s. Requires s initialized, begin <= end, begin <= s.length, and end <= source->length.