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

Method write_method

src/bytecode/io/writer.rs:107–112  ·  view source on GitHub ↗
(&mut self, method: &Method, cp: &ConstantPool)

Source from the content-addressed store, hash-verified

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

Callers 1

write_methodsMethod · 0.80

Calls 3

write_access_flagsMethod · 0.80
write_attributesMethod · 0.80

Tested by

no test coverage detected