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

Method write_methods

src/bytecode/io/writer.rs:98–105  ·  view source on GitHub ↗
(&mut self, methods: &Vec<Method>, cp: &ConstantPool)

Source from the content-addressed store, hash-verified

96 }
97
98 fn write_methods(&mut self, methods: &Vec<Method>, cp: &ConstantPool) -> Result<usize, Error> {
99 methods.iter().fold(self.write_u16(methods.len() as u16), |acc, x| {
100 match acc {
101 Ok(ctr) => self.write_method(x, cp).map(|c| c + ctr),
102 err@_ => err
103 }
104 })
105 }
106
107 fn write_method(&mut self, method: &Method, cp: &ConstantPool) -> Result<usize, Error> {
108 self.write_access_flags(&method.access_flags)

Callers 1

write_classMethod · 0.80

Calls 3

write_u16Method · 0.80
lenMethod · 0.80
write_methodMethod · 0.80

Tested by

no test coverage detected