pub type osdp_file_write_fn_t = Option<unsafe extern "C" fn(arg: *mut c_void, buf: *const c_void, size: c_int, offset: c_int) -> c_int>;Expand description
@brief Write a chunk of file data from buffer to disk.
@param arg Opaque pointer that was provided in @ref osdp_file_ops when the ops struct was registered. @param buf Buffer with file data to be stored to disk @param size Number of bytes to write to disk @param offset Number of bytes from the beginning of the file to start writing too.
@retval Number of bytes written @retval 0 on EOF @retval -ve on errors.
@note LibOSDP will guarantee that size and offset params are always positive and size is always greater than or equal to offset.
Aliased Type§
enum osdp_file_write_fn_t {
None,
Some(unsafe extern "C" fn(_: *mut c_void, _: *const c_void, _: i32, _: i32) -> i32),
}