Type Definition gnunet_sys::GNUNET_BIO_ReadHandler[][src]

type GNUNET_BIO_ReadHandler = Option<unsafe extern "C" fn(cls: *mut c_void, h: *mut GNUNET_BIO_ReadHandle, what: *const c_char, target: *mut c_void, target_size: usize) -> c_int>;

Function used to deserialize data read from @a h and store it into @a target.

@param cls closure (can be NULL) @param h the IO handle to read from @param what what is being read (for error message creation) @param target where to store the data @param target_size how many bytes can be written in @a target can be 0 if the size is unknown or is not fixed @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise