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

Method get_utf8

src/bytecode/classfile.rs:81–89  ·  view source on GitHub ↗
(&self, idx: u16)

Source from the content-addressed store, hash-verified

79 }
80
81 pub fn get_utf8(&self, idx: u16) -> Option<&Vec<u8>> {
82 match self.constants.get(idx as usize) {
83 Some(constant) => match constant {
84 &Constant::Utf8(ref bytes) => Some(bytes),
85 _ => None
86 },
87 _ => None
88 }
89 }
90
91 pub fn get_utf8_string(&self, idx: u16) -> Option<String> {
92 match self.get_utf8(idx) {

Callers 1

get_utf8_stringMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected