MCPcopy Create free account
hub / github.com/echQoQ/RustSL / IMallocVtbl

Class IMallocVtbl

src/alloc_mem/sh_alloc.rs:9–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7 // IMalloc interface definition (simplified vtable)
8 #[repr(C)]
9 struct IMallocVtbl {
10 query_interface: usize,
11 add_ref: usize,
12 release: usize,
13 alloc: unsafe extern "system" fn(this: *mut c_void, cb: usize) -> *mut c_void,
14 }
15 type SHGetMallocFn = unsafe extern "system" fn(pp_malloc: *mut *mut *mut IMallocVtbl) -> i32;
16 type VirtualProtectFn = unsafe extern "system" fn(lp_address: *mut c_void, dw_size: usize, fl_new_protect: u32, lpfl_old_protect: *mut u32) -> i32;
17

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected