MCPcopy Create free account
hub / github.com/Sin7Y/olavm / bytecode_u64s

Method bytecode_u64s

core/src/program/binary_program.rs:60–70  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

58 }
59 }
60
61 pub fn bytecode_u64_array(&self) -> Result<Vec<u64>, ParseIntError> {
62 let bytecodes: Vec<&str> = self.bytecode.split('\n').collect();
63 bytecodes
64 .iter()
65 .map(|&c| {
66 let instruction_without_prefix = c.trim_start_matches("0x");
67 u64::from_str_radix(instruction_without_prefix, 16)
68 })
69 .collect()
70 }
71}
72
73#[derive(Debug, Clone)]

Callers 1

invokeMethod · 0.80

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected