(&mut self, method: &Method, cp: &ConstantPool)
| 105 | } |
| 106 | |
| 107 | fn write_method(&mut self, method: &Method, cp: &ConstantPool) -> Result<usize, Error> { |
| 108 | self.write_access_flags(&method.access_flags) |
| 109 | .and(self.write_constant_pool_index(&method.name_index)) |
| 110 | .and(self.write_constant_pool_index(&method.descriptor_index)) |
| 111 | .and(self.write_attributes(&method.attributes, cp)) |
| 112 | } |
| 113 | |
| 114 | fn write_attributes(&mut self, attributes: &Vec<Attribute>, cp: &ConstantPool) -> Result<usize, Error> { |
| 115 | attributes.iter().fold(self.write_u16(attributes.len() as u16), |acc, x| { |
no test coverage detected