pipe_receive

Function pipe_receive 

Source
pub unsafe extern "C" fn pipe_receive(
    pipe: *mut PipeSide,
    data: *mut c_void,
    length: usize,
) -> usize
Expand description

Receives data from the pipe.

This function will try to receive all of the requested bytes from 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 read data out of
  • [out] - data The buffer to fill with data
  • length - Maximum length of data to read

§Returns

The number of bytes actually written into the provided buffer