retro_vfs_write_t

Type Alias retro_vfs_write_t 

Source
pub type retro_vfs_write_t = Option<unsafe extern "C" fn(stream: *mut retro_vfs_file_handle, s: *const c_void, len: u64) -> i64>;
Expand description

Write data to a file. Returns the number of bytes written, or -1 for error. Introduced in VFS API v1

Aliased Type§

pub enum retro_vfs_write_t {
    None,
    Some(unsafe extern "C" fn(*mut retro_vfs_file_handle, *const c_void, u64) -> i64),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut retro_vfs_file_handle, *const c_void, u64) -> i64)

Some value of type T.