#[repr(C)]pub struct StreamableBuffersI {
pub super_: BuffersI,
pub map: Option<unsafe extern "C" fn(inst: *mut BuffersO, path: *const c_char, offset: u64, size: u64, hash: u64) -> u32>,
pub map_database: Option<unsafe extern "C" fn(inst: *mut BuffersO, hash: u64, size: u64, file: *const FileO, page_size: u32, page_header_size: u32, first_page: u32) -> u32>,
pub is_mapped: Option<unsafe extern "C" fn(inst: *const BuffersO, id: u32) -> bool>,
pub is_loaded: Option<unsafe extern "C" fn(inst: *const BuffersO, id: u32) -> bool>,
pub unload: Option<unsafe extern "C" fn(inst: *mut BuffersO, id: u32)>,
pub save: Option<unsafe extern "C" fn(inst: *mut BuffersO, id: u32, path: *const c_char, offset: u64)>,
pub background_load_all: Option<unsafe extern "C" fn(inst: *mut BuffersO, percentage: *mut f32)>,
pub ensure_all_loaded: Option<unsafe extern "C" fn(inst: *mut BuffersO)>,
pub set_io: Option<unsafe extern "C" fn(inst: *mut BuffersO, io: *mut OsFileIoApi)>,
}
Fields§
§super_: BuffersI
§map: Option<unsafe extern "C" fn(inst: *mut BuffersO, path: *const c_char, offset: u64, size: u64, hash: u64) -> u32>
§map_database: Option<unsafe extern "C" fn(inst: *mut BuffersO, hash: u64, size: u64, file: *const FileO, page_size: u32, page_header_size: u32, first_page: u32) -> u32>
§is_mapped: Option<unsafe extern "C" fn(inst: *const BuffersO, id: u32) -> bool>
§is_loaded: Option<unsafe extern "C" fn(inst: *const BuffersO, id: u32) -> bool>
§unload: Option<unsafe extern "C" fn(inst: *mut BuffersO, id: u32)>
§save: Option<unsafe extern "C" fn(inst: *mut BuffersO, id: u32, path: *const c_char, offset: u64)>
§background_load_all: Option<unsafe extern "C" fn(inst: *mut BuffersO, percentage: *mut f32)>
§ensure_all_loaded: Option<unsafe extern "C" fn(inst: *mut BuffersO)>
§set_io: Option<unsafe extern "C" fn(inst: *mut BuffersO, io: *mut OsFileIoApi)>
Trait Implementations§
Source§impl Clone for StreamableBuffersI
impl Clone for StreamableBuffersI
Source§fn clone(&self) -> StreamableBuffersI
fn clone(&self) -> StreamableBuffersI
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for StreamableBuffersI
impl Default for StreamableBuffersI
impl Copy for StreamableBuffersI
Auto Trait Implementations§
impl Freeze for StreamableBuffersI
impl RefUnwindSafe for StreamableBuffersI
impl !Send for StreamableBuffersI
impl !Sync for StreamableBuffersI
impl Unpin for StreamableBuffersI
impl UnwindSafe for StreamableBuffersI
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more