MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / cb_progress_callback

Method cb_progress_callback

rust/src/progress.rs:7–14  ·  view source on GitHub ↗
(
        ctxt: *mut c_void,
        progress: usize,
        total: usize,
    )

Source from the content-addressed store, hash-verified

5 fn progress(&mut self, progress: usize, total: usize) -> bool;
6
7 unsafe extern "C" fn cb_progress_callback(
8 ctxt: *mut c_void,
9 progress: usize,
10 total: usize,
11 ) -> bool {
12 let ctxt: &mut Self = &mut *(ctxt as *mut Self);
13 ctxt.progress(progress, total)
14 }
15
16 #[allow(clippy::wrong_self_convention)]
17 unsafe fn into_raw(&mut self) -> *mut c_void {

Callers

nothing calls this directly

Implementers 1

progress.rsrust/src/progress.rs

Calls 1

progressMethod · 0.45

Tested by

no test coverage detected