#[repr(C)]pub struct NiMemManager {
pub allocator: Option<NonNull<NiAllocator>>,
}
Fields§
§allocator: Option<NonNull<NiAllocator>>
Implementations§
Source§impl NiMemManager
impl NiMemManager
Sourcepub fn get_singleton() -> Option<&'static NiMemManager>
pub fn get_singleton() -> Option<&'static NiMemManager>
Returns the singleton instance of Self
.
Sourcepub fn get_singleton_mut() -> Option<&'static mut NiMemManager>
pub fn get_singleton_mut() -> Option<&'static mut NiMemManager>
Returns the singleton instance of Self
.
pub fn allocate( &mut self, size_in_bytes: usize, alignment: usize, event_type: NiMemEventType, provide_accurate_size_on_deallocate: bool, file: Option<*const c_char>, line: Option<i32>, function: Option<*const c_char>, ) -> Option<NonNull<u8>>
pub fn deallocate( &mut self, memory: *mut c_void, event_type: NiMemEventType, size_in_bytes: Option<usize>, )
pub fn reallocate( &mut self, memory: *mut c_void, size_in_bytes: *mut usize, alignment: *mut usize, event_type: NiMemEventType, provide_accurate_size_on_deallocate: bool, size_current: usize, file: *const c_char, line: i32, function: *const c_char, ) -> Option<NonNull<u8>>
pub fn track_allocate( &mut self, memory: *const c_void, size_in_bytes: usize, event_type: NiMemEventType, file: *const c_char, line: i32, function: *const c_char, ) -> bool
pub fn track_deallocate( &mut self, memory: *const c_void, event_type: NiMemEventType, ) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NiMemManager
impl RefUnwindSafe for NiMemManager
impl !Send for NiMemManager
impl !Sync for NiMemManager
impl Unpin for NiMemManager
impl UnwindSafe for NiMemManager
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