(&mut self, methods: &Vec<Method>, cp: &ConstantPool)
| 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) |
no test coverage detected