MCPcopy Create free account
hub / github.com/cretz/stackparam / read_class

Function read_class

src/manip.rs:71–75  ·  view source on GitHub ↗
(class_data_len: jint, class_data: *const c_uchar)

Source from the content-addressed store, hash-verified

69}
70
71unsafe fn read_class(class_data_len: jint, class_data: *const c_uchar) -> Result<Classfile, String> {
72 let class_data_bytes = slice::from_raw_parts(class_data, class_data_len as usize);
73 let mut rdr = Cursor::new(class_data_bytes);
74 return str_err(ClassReader::read_class(&mut rdr));
75}
76
77unsafe fn write_class(jvmti_env: *mut jvmtiEnv,
78 class_file: &Classfile,

Callers 3

manip_throwable_classFunction · 0.85
manip_element_classFunction · 0.85
bytecode_testsFunction · 0.85

Calls 1

str_errFunction · 0.85

Tested by 1

bytecode_testsFunction · 0.68