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

Method write_field

src/bytecode/io/writer.rs:91–96  ·  view source on GitHub ↗
(&mut self, field: &Field, cp: &ConstantPool)

Source from the content-addressed store, hash-verified

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| {

Callers 1

write_fieldsMethod · 0.80

Calls 3

write_access_flagsMethod · 0.80
write_attributesMethod · 0.80

Tested by

no test coverage detected