#[repr(C)]pub struct ResourcePreloadParams {
pub m_Factory: *mut SResourceFactory,
pub m_Context: *mut c_void,
pub m_Filename: *const i8,
pub m_Buffer: *const c_void,
pub m_BufferSize: u32,
pub m_HintInfo: *mut PreloadHintInfo,
pub m_PreloadData: *mut *mut c_void,
}Expand description
Parameters to ResourcePreload callback.
Fields§
§m_Factory: *mut SResourceFactoryFactory handle
m_Context: *mut c_voidResource context
m_Filename: *const i8File name of the loaded file
m_Buffer: *const c_voidBuffer containing the loaded file
m_BufferSize: u32Size of data buffer
m_HintInfo: *mut PreloadHintInfoHinter info. Use this when calling PreloadHint
m_PreloadData: *mut *mut c_voidWritable user data that will be passed on to ResourceCreate function
Trait Implementations§
Source§impl Clone for ResourcePreloadParams
impl Clone for ResourcePreloadParams
Source§fn clone(&self) -> ResourcePreloadParams
fn clone(&self) -> ResourcePreloadParams
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 Debug for ResourcePreloadParams
impl Debug for ResourcePreloadParams
impl Copy for ResourcePreloadParams
Auto Trait Implementations§
impl Freeze for ResourcePreloadParams
impl RefUnwindSafe for ResourcePreloadParams
impl !Send for ResourcePreloadParams
impl !Sync for ResourcePreloadParams
impl Unpin for ResourcePreloadParams
impl UnwindSafe for ResourcePreloadParams
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