MCPcopy Index your code
hub / github.com/cretz/stackparam / get_params

Function get_params

src/native.rs:434–448  ·  view source on GitHub ↗
(jni_env: *mut JNIEnv,
                     thread: jthread,
                     max_depth: jint,
                     index_until_start: usize)

Source from the content-addressed store, hash-verified

432}
433
434unsafe fn get_params(jni_env: *mut JNIEnv,
435 thread: jthread,
436 max_depth: jint,
437 index_until_start: usize) -> Result<Vec<MethodInfo>, String> {
438 // Grab the trace
439 let trace = get_stack_trace(thread, max_depth)?;
440 // Go over every frame getting the info
441 let mut ret: Vec<MethodInfo> = Vec::new();
442 for (index, frame) in trace.iter().enumerate() {
443 if index >= index_until_start {
444 ret.push(get_frame_params(jni_env, thread, frame, index as jint)?);
445 }
446 }
447 return Result::Ok(ret);
448}
449
450unsafe fn class_sig(class: jclass) -> Result<String, String> {
451 let mut sig: *mut c_char = 0 as *mut c_char;

Callers 2

populate_stack_paramsFunction · 0.85

Calls 2

get_stack_traceFunction · 0.85
get_frame_paramsFunction · 0.85

Tested by

no test coverage detected