pub unsafe extern "C" fn hs_copy_stream(
    to_id: *mut *mut hs_stream_t,
    from_id: *const hs_stream_t
) -> hs_error_t
Expand description

Duplicate the given stream. The new stream will have the same state as the original including the current stream offset.

@param to_id On success, a pointer to the new, copied @ref hs_stream_t will be returned; NULL on failure.

@param from_id The stream (as created by @ref hs_open_stream()) to be copied.

@return @ref HS_SUCCESS on success, other values on failure.