MCPcopy Create free account
hub / github.com/GPPVM-Project/SkyLC / get_function

Method get_function

crates/skyl-data/src/bytecode.rs:88–90  ·  view source on GitHub ↗
(&self, function_id: u32)

Source from the content-addressed store, hash-verified

86 }
87
88 pub fn get_function(&self, function_id: u32) -> Rc<Chunk> {
89 self.functions[&function_id].chunk.clone()
90 }
91
92 pub fn save_to_file<P: AsRef<Path>>(&self, path: P) -> Result<(), EncodeError> {
93 let encoded: Vec<u8> = encode_to_vec(self, BINCODE_CONFIG)?;

Callers 1

attach_fnMethod · 0.45

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected