(&mut self, field: &Field, cp: &ConstantPool)
| 89 | } |
| 90 | |
| 91 | fn write_field(&mut self, field: &Field, cp: &ConstantPool) -> Result<usize, Error> { |
| 92 | self.write_access_flags(&field.access_flags) |
| 93 | .and(self.write_constant_pool_index(&field.name_index)) |
| 94 | .and(self.write_constant_pool_index(&field.descriptor_index)) |
| 95 | .and(self.write_attributes(&field.attributes, cp)) |
| 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| { |
no test coverage detected