pub trait IMallocSpy_Impl: Sized {
    // Required methods
    fn PreAlloc(&self, cbrequest: usize) -> usize;
    fn PostAlloc(&self, pactual: *const c_void) -> *mut c_void;
    fn PreFree(&self, prequest: *const c_void, fspyed: BOOL) -> *mut c_void;
    fn PostFree(&self, fspyed: BOOL);
    fn PreRealloc(
        &self,
        prequest: *const c_void,
        cbrequest: usize,
        ppnewrequest: *mut *mut c_void,
        fspyed: BOOL
    ) -> usize;
    fn PostRealloc(&self, pactual: *const c_void, fspyed: BOOL) -> *mut c_void;
    fn PreGetSize(&self, prequest: *const c_void, fspyed: BOOL) -> *mut c_void;
    fn PostGetSize(&self, cbactual: usize, fspyed: BOOL) -> usize;
    fn PreDidAlloc(&self, prequest: *const c_void, fspyed: BOOL) -> *mut c_void;
    fn PostDidAlloc(
        &self,
        prequest: *const c_void,
        fspyed: BOOL,
        factual: i32
    ) -> i32;
    fn PreHeapMinimize(&self);
    fn PostHeapMinimize(&self);
}

Required Methods§

fn PreAlloc(&self, cbrequest: usize) -> usize

fn PostAlloc(&self, pactual: *const c_void) -> *mut c_void

fn PreFree(&self, prequest: *const c_void, fspyed: BOOL) -> *mut c_void

fn PostFree(&self, fspyed: BOOL)

fn PreRealloc( &self, prequest: *const c_void, cbrequest: usize, ppnewrequest: *mut *mut c_void, fspyed: BOOL ) -> usize

fn PostRealloc(&self, pactual: *const c_void, fspyed: BOOL) -> *mut c_void

fn PreGetSize(&self, prequest: *const c_void, fspyed: BOOL) -> *mut c_void

fn PostGetSize(&self, cbactual: usize, fspyed: BOOL) -> usize

fn PreDidAlloc(&self, prequest: *const c_void, fspyed: BOOL) -> *mut c_void

fn PostDidAlloc( &self, prequest: *const c_void, fspyed: BOOL, factual: i32 ) -> i32

fn PreHeapMinimize(&self)

fn PostHeapMinimize(&self)

Object Safety§

This trait is not object safe.

Implementors§