pub unsafe extern "C" fn pipe_send(
pipe: *mut PipeSide,
data: *const c_void,
length: usize,
) -> usizeExpand description
Sends data into the pipe.
This function will try to send all of the requested bytes to the pipe.
If at some point during the operation the pipe becomes broken, this function
will return prematurely, in which case the return value will be less than the
requested length.
§Arguments
[in]- pipe The pipe side to send data into[out]- data The buffer to get data fromlength- Maximum length of data to send
§Returns
The number of bytes actually read from the provided buffer