use vmi_core::Va;
use super::Argument;
pub struct CallBuilder {
#[allow(unused)] pub(super) function_address: Va,
pub(super) arguments: Vec<Argument>,
}
impl CallBuilder {
pub fn new(function_address: Va) -> Self {
Self {
function_address,
arguments: Vec::new(),
}
}
pub fn with_argument(mut self, argument: impl Into<Argument>) -> Self {
self.arguments.push(argument.into());
self
}
}