Function gnunet_sys::GNUNET_DISK_file_read [−][src]
pub unsafe extern "C" fn GNUNET_DISK_file_read(
h: *const GNUNET_DISK_FileHandle,
result: *mut c_void,
len: usize
) -> isize
Read the contents of a binary file into a buffer.
@param h handle to an open file @param result the buffer to write the result to @param len the maximum number of bytes to read @return the number of bytes read on success, #GNUNET_SYSERR on failure