Skip to main content

mlx_io_vtable

Type Alias mlx_io_vtable 

Source
pub type mlx_io_vtable = mlx_io_vtable_;
Expand description

Virtual table for custom IO reader and writer objects.

Aliased Type§

#[repr(C)]
pub struct mlx_io_vtable { pub is_open: Option<unsafe extern "C" fn(*mut c_void) -> bool>, pub good: Option<unsafe extern "C" fn(*mut c_void) -> bool>, pub tell: Option<unsafe extern "C" fn(*mut c_void) -> usize>, pub seek: Option<unsafe extern "C" fn(*mut c_void, i64, i32) -> i32>, pub read: Option<unsafe extern "C" fn(*mut c_void, *mut i8, usize) -> usize>, pub read_at_offset: Option<unsafe extern "C" fn(*mut c_void, *mut i8, usize, usize) -> usize>, pub write: Option<unsafe extern "C" fn(*mut c_void, *const i8, usize) -> usize>, pub label: Option<unsafe extern "C" fn(*mut c_void) -> *const i8>, pub free: Option<unsafe extern "C" fn(*mut c_void)>, }

Fields§

§is_open: Option<unsafe extern "C" fn(*mut c_void) -> bool>§good: Option<unsafe extern "C" fn(*mut c_void) -> bool>§tell: Option<unsafe extern "C" fn(*mut c_void) -> usize>§seek: Option<unsafe extern "C" fn(*mut c_void, i64, i32) -> i32>§read: Option<unsafe extern "C" fn(*mut c_void, *mut i8, usize) -> usize>§read_at_offset: Option<unsafe extern "C" fn(*mut c_void, *mut i8, usize, usize) -> usize>§write: Option<unsafe extern "C" fn(*mut c_void, *const i8, usize) -> usize>§label: Option<unsafe extern "C" fn(*mut c_void) -> *const i8>§free: Option<unsafe extern "C" fn(*mut c_void)>