retro_vfs_read_t

Type Alias retro_vfs_read_t 

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

Read data from a file. Returns the number of bytes read, or -1 for error. Introduced in VFS API v1

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.