Type Definition gnunet_sys::GNUNET_BIO_WriteHandler [−][src]
type GNUNET_BIO_WriteHandler = Option<unsafe extern "C" fn(cls: *mut c_void, h: *mut GNUNET_BIO_WriteHandle, what: *const c_char, source: *mut c_void, source_size: usize) -> c_int>;
Function used to serialize data from a buffer and write it to @a h.
@param cls closure (can be NULL) @param h the IO handle to write to @param what what is being written (for error message creation) @param source the data to write @param source_size how many bytes should be written @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise