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

Method write_constant_pool_index

src/bytecode/io/writer.rs:69–71  ·  view source on GitHub ↗
(&mut self, class_index: &ConstantPoolIndex)

Source from the content-addressed store, hash-verified

67 }
68
69 fn write_constant_pool_index(&mut self, class_index: &ConstantPoolIndex) -> Result<usize, Error> {
70 self.write_u16(class_index.idx as u16)
71 }
72
73 fn write_interfaces(&mut self, ifs: &Vec<ConstantPoolIndex>) -> Result<usize, Error> {
74 ifs.iter().fold(self.write_u16(ifs.len() as u16), |acc, x| {

Callers 3

write_classMethod · 0.80
write_fieldMethod · 0.80
write_methodMethod · 0.80

Calls 1

write_u16Method · 0.80

Tested by

no test coverage detected