cookie_seek_function_t

Type Alias cookie_seek_function_t 

Source
pub type cookie_seek_function_t = Option<unsafe extern "C" fn(__cookie: *mut c_void, __pos: *mut __off64_t, __w: c_int) -> c_int>;
Expand description

Move COOKIE’s file position to *POS bytes from the beginning of the file (if W is SEEK_SET), the current position (if W is SEEK_CUR), or the end of the file (if W is SEEK_END). Set *POS to the new file position. Returns zero if successful, nonzero if not.

Aliased Type§

pub enum cookie_seek_function_t {
    None,
    Some(unsafe extern "C" fn(*mut c_void, *mut i64, i32) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void, *mut i64, i32) -> i32)

Some value of type T.