#[repr(C)]pub struct NiAllocatorVtbl {
pub Allocate: extern "C" fn(this: *mut NiAllocator, sizeInBytes: &mut usize, alignment: &mut usize, eventType: NiMemEventType, provideAccurateSizeOnDeallocate: bool, file: *const c_char, line: i32, function: *const c_char) -> *mut c_void,
pub Deallocate: extern "C" fn(this: *mut NiAllocator, memory: *mut c_void, eventType: NiMemEventType, sizeInBytes: usize),
pub Reallocate: extern "C" fn(this: *mut NiAllocator, memory: *mut c_void, sizeInBytes: *mut usize, alignment: *mut usize, eventType: NiMemEventType, provideAccurateSizeOnDeallocate: bool, size_current: usize, file: *const c_char, line: i32, function: *const c_char) -> *mut c_void,
pub TrackAllocate: extern "C" fn(this: *mut NiAllocator, memory: *const c_void, sizeInBytes: usize, eventType: NiMemEventType, file: *const c_char, line: i32, function: *const c_char) -> bool,
pub TrackDeallocate: extern "C" fn(this: *mut NiAllocator, memory: *const c_void, eventType: NiMemEventType) -> bool,
pub Unk_06: extern "C" fn(this: *mut NiAllocator),
pub Initialize: extern "C" fn(this: *mut NiAllocator),
pub Shutdown: extern "C" fn(this: *mut NiAllocator),
pub VerifyAddress: extern "C" fn(this: *mut NiAllocator, memory: *const c_void) -> bool,
}Expand description
9 methods
Fields§
§Allocate: extern "C" fn(this: *mut NiAllocator, sizeInBytes: &mut usize, alignment: &mut usize, eventType: NiMemEventType, provideAccurateSizeOnDeallocate: bool, file: *const c_char, line: i32, function: *const c_char) -> *mut c_void§Deallocate: extern "C" fn(this: *mut NiAllocator, memory: *mut c_void, eventType: NiMemEventType, sizeInBytes: usize)§Reallocate: extern "C" fn(this: *mut NiAllocator, memory: *mut c_void, sizeInBytes: *mut usize, alignment: *mut usize, eventType: NiMemEventType, provideAccurateSizeOnDeallocate: bool, size_current: usize, file: *const c_char, line: i32, function: *const c_char) -> *mut c_void§TrackAllocate: extern "C" fn(this: *mut NiAllocator, memory: *const c_void, sizeInBytes: usize, eventType: NiMemEventType, file: *const c_char, line: i32, function: *const c_char) -> bool§TrackDeallocate: extern "C" fn(this: *mut NiAllocator, memory: *const c_void, eventType: NiMemEventType) -> bool§Unk_06: extern "C" fn(this: *mut NiAllocator)§Initialize: extern "C" fn(this: *mut NiAllocator)§Shutdown: extern "C" fn(this: *mut NiAllocator)§VerifyAddress: extern "C" fn(this: *mut NiAllocator, memory: *const c_void) -> boolAuto Trait Implementations§
impl Freeze for NiAllocatorVtbl
impl RefUnwindSafe for NiAllocatorVtbl
impl Send for NiAllocatorVtbl
impl Sync for NiAllocatorVtbl
impl Unpin for NiAllocatorVtbl
impl UnwindSafe for NiAllocatorVtbl
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