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

Method get_utf8_index

src/bytecode/classfile.rs:115–117  ·  view source on GitHub ↗
(&self, utf8: &'static str)

Source from the content-addressed store, hash-verified

113 }
114
115 pub fn get_utf8_index(&self, utf8: &'static str) -> usize {
116 self.find_ut8_index(utf8).unwrap_or(0)
117 }
118
119 pub fn resolve_index(&self, idx: &ConstantPoolIndex) -> Option<&Constant> {
120 self.constants.get(idx.idx)

Callers 2

write_attributeMethod · 0.80
write_stack_map_tableMethod · 0.80

Calls 1

find_ut8_indexMethod · 0.80

Tested by

no test coverage detected