blob: b8ecb0d0f3f5ee11775f56a8f38522b90ecefe2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
use crate::functions::FunctionPointer;
#[repr(C)]
#[derive(Clone, Debug)]
pub struct TableElement {
ty: u64,
func: u64,
}
impl TableElement {
pub fn function_pointer(&self) -> FunctionPointer {
FunctionPointer::from_usize(self.func as usize)
}
}
|