[][src]Struct tm_sys::ffi::tm_streamable_buffers_i

#[repr(C)]pub struct tm_streamable_buffers_i {
    pub __bindgen_padding_0: [u64; 10],
    pub map: Option<unsafe extern "C" fn(inst: *mut tm_buffers_o, path: *const c_char, offset: u64, size: u64, hash: u64) -> u32>,
    pub map_database: Option<unsafe extern "C" fn(inst: *mut tm_buffers_o, hash: u64, size: u64, file: *const tm_file_o, page_size: u32, page_header_size: u32, first_page: u32) -> u32>,
    pub is_mapped: Option<unsafe extern "C" fn(inst: *const tm_buffers_o, id: u32) -> bool>,
    pub is_loaded: Option<unsafe extern "C" fn(inst: *const tm_buffers_o, id: u32) -> bool>,
    pub unload: Option<unsafe extern "C" fn(inst: *mut tm_buffers_o, id: u32)>,
    pub save: Option<unsafe extern "C" fn(inst: *mut tm_buffers_o, id: u32, path: *const c_char, offset: u64)>,
    pub background_load_all: Option<unsafe extern "C" fn(inst: *mut tm_buffers_o)>,
    pub ensure_all_loaded: Option<unsafe extern "C" fn(inst: *mut tm_buffers_o)>,
    pub set_io: Option<unsafe extern "C" fn(inst: *mut tm_buffers_o, io: *mut tm_os_file_io_api)>,
}

Fields

__bindgen_padding_0: [u64; 10]map: Option<unsafe extern "C" fn(inst: *mut tm_buffers_o, path: *const c_char, offset: u64, size: u64, hash: u64) -> u32>map_database: Option<unsafe extern "C" fn(inst: *mut tm_buffers_o, hash: u64, size: u64, file: *const tm_file_o, page_size: u32, page_header_size: u32, first_page: u32) -> u32>is_mapped: Option<unsafe extern "C" fn(inst: *const tm_buffers_o, id: u32) -> bool>is_loaded: Option<unsafe extern "C" fn(inst: *const tm_buffers_o, id: u32) -> bool>unload: Option<unsafe extern "C" fn(inst: *mut tm_buffers_o, id: u32)>save: Option<unsafe extern "C" fn(inst: *mut tm_buffers_o, id: u32, path: *const c_char, offset: u64)>background_load_all: Option<unsafe extern "C" fn(inst: *mut tm_buffers_o)>ensure_all_loaded: Option<unsafe extern "C" fn(inst: *mut tm_buffers_o)>set_io: Option<unsafe extern "C" fn(inst: *mut tm_buffers_o, io: *mut tm_os_file_io_api)>

Trait Implementations

impl Clone for tm_streamable_buffers_i[src]

impl Copy for tm_streamable_buffers_i[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.