mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-24 14:11:32 +00:00
Added basic identity function benchmark
This commit is contained in:
@ -401,6 +401,10 @@ impl Instance {
|
||||
pub fn memories(&self) -> Arc<Vec<LinearMemory>> {
|
||||
self.memories.clone()
|
||||
}
|
||||
pub fn get_function_pointer(&self, func_index: FuncIndex) -> *const u8 {
|
||||
let func_pointer = &self.functions[func_index.index()];
|
||||
func_pointer.as_ptr()
|
||||
}
|
||||
|
||||
/// Invoke a WebAssembly function given a FuncIndex and the
|
||||
/// arguments that the function should be called with
|
||||
|
Reference in New Issue
Block a user