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

Function get_method_code_mut

src/manip.rs:215–223  ·  view source on GitHub ↗
(method: &mut Method)

Source from the content-addressed store, hash-verified

213}
214
215unsafe fn get_method_code_mut(method: &mut Method) -> Result<&mut Vec<Instruction>, String> {
216 for attr in method.attributes.iter_mut() {
217 match attr {
218 &mut Attribute::Code { ref mut code, .. } => return Result::Ok(code),
219 _ => ()
220 }
221 }
222 return Result::Err("Unable to find code for method".to_string());
223}
224
225#[allow(dead_code)]
226unsafe fn get_manip_class(jni_env: *mut JNIEnv) -> Result<jclass, String> {

Callers 1

update_fill_methodFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected