pub type cookie_io_functions_t = _IO_cookie_io_functions_t;Expand description
The structure with the cookie function pointers. The tag name of this struct is _IO_cookie_io_functions_t to preserve historic C++ mangled names for functions taking cookie_io_functions_t arguments. That name should not be used in new code.
Aliased Type§
#[repr(C)]pub struct cookie_io_functions_t {
pub read: Option<unsafe extern "C" fn(*mut c_void, *mut i8, usize) -> i64>,
pub write: Option<unsafe extern "C" fn(*mut c_void, *const i8, usize) -> i64>,
pub seek: Option<unsafe extern "C" fn(*mut c_void, *mut i64, i32) -> i32>,
pub close: Option<unsafe extern "C" fn(*mut c_void) -> i32>,
}Fields§
§read: Option<unsafe extern "C" fn(*mut c_void, *mut i8, usize) -> i64>Read bytes.
write: Option<unsafe extern "C" fn(*mut c_void, *const i8, usize) -> i64>Write bytes.
seek: Option<unsafe extern "C" fn(*mut c_void, *mut i64, i32) -> i32>Seek/tell file position.
close: Option<unsafe extern "C" fn(*mut c_void) -> i32>Close file.