Macro convert_to_fn_with_offset
macro_rules! convert_to_fn_with_offset {
($abi:literal, $pointerable:expr, $offset:expr, $($tokens:tt)*) => { ... };
($abi: literal, $pointerable:expr, $offset:expr) => { ... };
}
Expand description
Transforms pointerable into a function pointer.
ยงArguments
abi
- The ABI of the function, e.g."sysv64"
.pointerable
- The pointerable to transform into a function pointer. This is any object that implementscrate::traits::Pointerable
trait.offset
- the offset in the instructionsu8
buffer to jump to, relative to the beginning of the buffer.tokens
- optional function signature, e.g.fn(i32, bool) -> u8
.